Part Number Hot Search : 
1H101 LA5318V BPC3502 R9876 1H221 TK73227 SKM40 IRFBC40
Product Description
Full Text Search
 

To Download FDC37N3869 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  smsc ds ? FDC37N3869 rev, 10/25/2000 FDC37N3869 3.3v super i/o controller with infrared support for portable applications features pc 99 compliant 3.3 volt operation (5v tolerant ) intelligent auto power management 16 bit address qualification 2.88mb super i/o floppy disk controller - licensed cmos 765b floppy disk controller - software and register compatible with smsc?s proprietary 82077aa compatible core - supports one floppy drive directly - configurable open dr ain/push-pull output drivers - supports vertical recording format - 16 byte data fifo - 100% ibm compatibility - detects all overrun and underrun conditions - sophisticated power control circuitry (pcc) including multiple power-down modes for reduced power consumption - dma enable logic - data rate and drive control registers - swap drives a and b - non-burst mode dma option - 48 base i/o address, 15 irq and 4 dma options - forceable write protect and disk change controls floppy disk available on parallel port pins acpi compliant enhanced digital data separator - 2mbps, 1 mbps, 500 kbps, 300 kbps, 250 kbps data rates - programmable precompensation modes serial ports - two high speed ns16c550 compatible uarts with send/receive 16 byte fifos - supports 230k and 460k baud - programmable baud rate generator - modem control circuitry infrared communications controller - irda v1.1 (4mbps), hpsir, askir, consumer ir support - 2 ir ports - 96 base i/o address, 15 irq options and 4 dma options multi-mode parallel port with chiprotect - standard mode - ibm pc/xt, pc/at, and ps/2 compatible bi- directional parallel port - enhanced parallel port (epp) compatible - epp 1.7 and epp 1.9 (ieee 1284 compliant) - enhanced capabilities port (ecp) compatible (ieee 1284 compliant) - incorporates chiprotect circuitry for protection against damage due to printer power-on - 192 base i/o address, 15 irq and 4 dma options game port select logic - 48 base i/o addresses general purpose address decoder - 16-byte block decode ordering information order number: FDC37N3869-md for 100 pin tqfp packa g e
smsc ds ? FDC37N3869 page 2 rev. 10/25/2000 80 arkay drive hauppauge, ny 11788 (631) 435-6000 fax (631) 273-3123 copyright ? smsc 2004. all rights reserved. circuit diagrams and other information rela ting to smsc products are included as a m eans of illustrating typical applications. consequently, complete information sufficient for construction pur poses is not necessarily given. although the informat ion has been checked and is bel ieved to be accurate, no responsibility is assumed for ina ccuracies. smsc reserves the ri ght to make changes to specif ications and product descriptions at any time without notice. contact your local smsc sales office to obtain the late st specifications bef ore placing your product order. the provisi on of this information does not convey to the purchas er of the described semiconducto r devices any licenses under any patent rights or other intellect ual property rights of smsc or others. all sales are expressly conditional on your agr eement to the terms and conditions of the most re cently dated ve rsion of smsc's standard terms of sale agreement dated before the date of y our order (the "terms of sale ag reement"). the product may contain d esign defects or errors known as anomalies which may cause the product's f unctions to deviate from published s pecifications. a nomaly sheets are available upon request. smsc products are not des igned, intended, authorized or wa rranted for use in any life s upport or other application whe re product failure could cause or contri bute to personal injury or severe property damage. an y and all such uses without prior written approval of an officer of smsc and further testing and/or modification will be fully at the risk of the customer. copies of this document or other smsc litera ture, as well as the terms of sale agreement, may be obtained by visiting smsc?s website at http:// www.smsc.com. smsc is a registered tr ademark of standard microsystems corporation (?smsc?). product names and company names are the trademarks of their respective holders. smsc disclaims and excludes any and all warranties, including without limitation any and all implied warranties of merchantability, fitness for a particular purpose, ti tle, and against infringement and the like, and any and all warranties arising from any course of dealing or usage of trade. in no event shall smsc be liable for any direct, incident al, indirect, special, punitive, or con sequential damages; or for lost data, profits, savings or revenues of any kind; regardless of th e form of action, whether based on contract; tort; negligence of smsc or others; strict liability; breach of warranty; or otherwise; whether or not any remedy of buyer is held to have failed of it s essential purpose, and whet her or not smsc has been advised of the possibility of such damages.
smsc ds ? FDC37N3869 page 3 rev. 10/25/2000 general description the smsc FDC37N3869 is a 3.3v pc 99-compliant super i/o controller wi th infrared support. the FDC37N3869 utilizes smsc?s proven supercell te chnology and is optimized for mother board applications. the FDC37N3869 incorporates smsc?s true cmos 765b floppy disk controller, advanced digital data separator, 16-byte data fifo, two 16c550 compatible uarts, one multi-m ode parallel port with chiprotect circuitry plus epp and ecp support, game port chip select logic and one floppy direct drive support. the FDC37N3869 does not requi re any external filter components, is easy to use and offers lower system cost and reduced board area. the FDC37N3869 is software and register compatible with smsc?s proprietary 82077aa core. the true cmos 765b core provides 100% compatibility wi th ibm pc/xt and pc/at architectures and provides data overflow and underflow protection. t he smsc advanced digital data separator incorporates sm sc?s patented data separator technology allowing for eas e of testing and use. the fdc37n 3869 supports both 1m bps and 2mbps data rates and vertical recording oper ation at 1mbps data rate. the FDC37N3869 also features a full 16-bit internally decoded address bus, a serial irqinterface with pci nclkrun support, relocatable configurati on ports and four dma channel options. both on-chip uarts are compatible with the ns16c550. one uart includes additional support for a serial infrared interface that complies with irda v1.2 (fast ir), hpsir, and askir formats (u sed by sharp, apple newton, and other pdas), as well as consumer ir. the parallel port and the game port select logic are compatible with ibm pc/a t architectures. the parallel port chiprotect circuitry prevents damage caused by an atta ched powered printer when the FDC37N3869 is not powered. the FDC37N3869 incorporates sophisticat ed power control circuitry (pcc). t he pcc supports multiple low power down modes. the FDC37N3869 also features software conf igurable logic (scl) for ease of use. scl allows programmable system configurati on of key functions such as t he fdc, parallel port, and uarts.
smsc ds ? FDC37N3869 page 4 rev. 10/25/2000 table of contents feature s....................................................................................................................... ..........................1 general des cription ............................................................................................................ .............3 pin config uratio n.............................................................................................................. .................8 pin descri ption................................................................................................................ .....................9 buffer type per pin ............................................................................................................ ............9 b uffer t ype s ummary ..............................................................................................................................1 5 o utput d rivers ............................................................................................................................... ........16 functional d escription ......................................................................................................... ........17 h ost p rocessor i nterface .......................................................................................................................17 floppy disk controller .....................................................................................................................17 m odes o f o peration ............................................................................................................................... .17 floppy modes ............................................................................................................................... ......17 interface modes ............................................................................................................................... ...18 f loppy d isk c ontroller i nternal r egisters .............................................................................................18 status register a (sra) ...............................................................................................................18 status register b (srb) ...............................................................................................................21 digital output register (dor) ....................................................................................................23 tape drive register (tdr) ............................................................................................................24 main status register (msr) .........................................................................................................25 data rate select register (dsr) ...............................................................................................26 data register (fifo) ......................................................................................................................28 digital input register (dir) .........................................................................................................28 configuration control register (ccr) ...................................................................................29 s tatus r egister e ncoding .......................................................................................................................31 r eset ............................................................................................................................... .......................32 reset pin (hardware reset) ...............................................................................................................32 dor reset vs. dsr reset (software reset) .........................................................................................33 dma t ransfers ............................................................................................................................... ........33 c ontroller p hases ............................................................................................................................... ..33 command phase ............................................................................................................................... ...33 execution phase ............................................................................................................................... ..33 result phase ............................................................................................................................... ........34 c ommand s et /d escriptions ......................................................................................................................35 i nstruction s et ............................................................................................................................... ........37 d ata t ransfer c ommands ........................................................................................................................43 read data ............................................................................................................................... ............43 read deleted data ............................................................................................................................... 45 read a track ............................................................................................................................... .......45 write data ............................................................................................................................... ............46 write deleted data ..............................................................................................................................4 7 verify ............................................................................................................................... ....................47 format a track ............................................................................................................................... ....48 c ontrol c ommands ............................................................................................................................... ...49 read id ............................................................................................................................... ................49 recalibrate ............................................................................................................................... ...........49 seek ............................................................................................................................... .....................50 sense interrupt status ...........................................................................................................................50 sense drive status ..............................................................................................................................5 1 specify ............................................................................................................................... .................51
smsc ds ? FDC37N3869 page 5 rev. 10/25/2000 configure ............................................................................................................................... .............51 version ............................................................................................................................... ................52 relative seek ............................................................................................................................... ........52 perpendicular mode ............................................................................................................................52 lock ............................................................................................................................... ...................53 enhanced dumpreg .......................................................................................................................54 compatibility ............................................................................................................................... .......54 p arallel p ort f loppy d isk c ontroller ....................................................................................................54 serial port (uart) ............................................................................................................................... ..56 r egister d escription ............................................................................................................................... 56 receive buffer register (rb) .....................................................................................................56 transmit buffer register (tb) ...................................................................................................56 interrupt enable register (ier) ................................................................................................56 interrupt identification register (iir) .....................................................................................57 fifo control register (fcr) .......................................................................................................58 line control register (lcr) .......................................................................................................59 modem control register (mcr) ..................................................................................................60 line status register (lsr) ...........................................................................................................61 modem status register (msr) .....................................................................................................62 scratchpad register (scr) .........................................................................................................62 programmable baud rate gene rator divisor latches ......................................................63 the affects of reset on the uart registers .....................................................................................63 fifo i nterrupt m ode o peration ...............................................................................................................64 fifo p olled m ode o peration ...................................................................................................................64 n otes o n s erial p ort fifo m ode o peration ............................................................................................66 general ............................................................................................................................... ............66 tx and rx fifo operation .............................................................................................................66 infrared interface ..............................................................................................................................6 7 i r da sir/fir and askir ..........................................................................................................................67 c onsumer ir ............................................................................................................................... .............67 h ardware i nterface ............................................................................................................................... .68 ir h alf d uplex t urnaround d elay t ime ....................................................................................................69 parallel port .................................................................................................................. ..................70 ibm xt/at compatible, bi-directional and epp modes .................................................................71 data port ............................................................................................................................... .........71 status port ............................................................................................................................... .....71 control port ............................................................................................................................... ..72 epp address port ..........................................................................................................................72 epp data port 0 ..............................................................................................................................7 3 epp data port 1 ..............................................................................................................................7 3 epp data port 2 ..............................................................................................................................7 3 epp data port 3 ..............................................................................................................................7 3 epp 1.9 operation ............................................................................................................................... 73 software constraints ..........................................................................................................................73 epp 1.9 write ............................................................................................................................... .......73 epp 1.9 read ............................................................................................................................... .......74 epp 1.7 operation ............................................................................................................................... 75 software constraints ..........................................................................................................................75 epp 1.7 write ............................................................................................................................... .......75 epp 1.7 read ............................................................................................................................... .......75 extended capabilities parallel port ...........................................................................................77 vocabulary ............................................................................................................................... ...........77 isa implementation standard ....................................................................................................78 description ............................................................................................................................... ..........78 register definitions ............................................................................................................................78
smsc ds ? FDC37N3869 page 6 rev. 10/25/2000 operation ............................................................................................................................... .........84 auto power management ....................................................................................................................87 fdc p ower m anagement ..........................................................................................................................88 dsr from powerdown ........................................................................................................................88 wake up from auto powerdown .........................................................................................................88 register behavior ............................................................................................................................... 88 pin behavior ............................................................................................................................... ........89 uart p ower m anagement .......................................................................................................................91 p arallel p ort ............................................................................................................................... ..........91 serial irq ............................................................................................................................... .............91 introduction ............................................................................................................................... .........91 irqser cycle modes ..........................................................................................................................92 irqser irq/data frames ....................................................................................................................93 stop cycle control ..............................................................................................................................9 4 latency ............................................................................................................................... ................94 eoi/isr read latency .........................................................................................................................94 ac/dc specification issue ..................................................................................................................94 reset and initialization ...........................................................................................................................94 add pci n clkrun support ................................................................................................................94 overview ............................................................................................................................... ..............94 using nclkrun ............................................................................................................................... ..95 configuration ............................................................................................................................... ........96 c onfiguration a ccess p orts ...................................................................................................................96 c onfiguration s tate ............................................................................................................................... .96 entering the configuration state .........................................................................................................96 configuration register programming ..................................................................................................97 exiting the configuration state ...........................................................................................................97 programming example ........................................................................................................................97 configuration select register (csr) ...................................................................................................97 c onfiguration r egisters d escription ......................................................................................................98 cr00 ............................................................................................................................... ....................99 cr01 ............................................................................................................................... ....................99 cr02 ............................................................................................................................... ..................100 cr03 ............................................................................................................................... ..................100 cr04 ............................................................................................................................... ..................101 cr05 ............................................................................................................................... ..................102 cr06 ............................................................................................................................... ..................102 cr07 ............................................................................................................................... ..................103 cr08 ............................................................................................................................... ..................103 cr09 ............................................................................................................................... ..................103 cr0a ............................................................................................................................... .................104 cr0b ............................................................................................................................... .................104 cr0c ............................................................................................................................... .................105 cr0d ............................................................................................................................... .................105 cr0e ............................................................................................................................... ..................105 cr0f ............................................................................................................................... ..................105 cr10 ............................................................................................................................... ..................106 cr11 ............................................................................................................................... ..................106 cr12 - cr13 ............................................................................................................................... .......106 cr14 ............................................................................................................................... ..................107 cr15 ............................................................................................................................... ..................107 cr16 ............................................................................................................................... ..................107 cr17 ............................................................................................................................... ..................107 cr18 - cr1d ............................................................................................................................... ......108 cr1e ............................................................................................................................... ..................108 cr1f ............................................................................................................................... ..................108
smsc ds ? FDC37N3869 page 7 rev. 10/25/2000 cr20 ............................................................................................................................... ..................109 cr21 ............................................................................................................................... ..................109 cr23 ............................................................................................................................... ..................109 cr24 ............................................................................................................................... ..................110 cr25 ............................................................................................................................... ..................110 cr26 ............................................................................................................................... ..................110 cr27 ............................................................................................................................... ..................111 cr28 ............................................................................................................................... ..................111 cr29 ............................................................................................................................... ..................112 cr2a ............................................................................................................................... .................112 cr2b ............................................................................................................................... .................112 cr2c ............................................................................................................................... .................112 cr2d ............................................................................................................................... .................112 cr2e ............................................................................................................................... ..................113 cr2f ............................................................................................................................... ..................113 operational d escription ........................................................................................................ ....114 maximum guaranteed ratings ......................................................................................................114 dc electrical characteristics ...................................................................................................114 ac timing ............................................................................................................................... ................117 h ost t iming ............................................................................................................................... ............117 fdd t iming ............................................................................................................................... ...........121 s erial p ort t iming .............................................................................................................................12 2 p arallel p ort t iming .........................................................................................................................127 parallel port epp timing ...............................................................................................................128 parallel port ecp timing ...............................................................................................................133 package ou tlines ............................................................................................................... ............136
smsc ds ? FDC37N3869 page 8 rev. 10/25/2000 pin configuration figure 1 - FDC37N3869 pin configuration fdc37n869 100 pin tqfp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 a13 nds0 a14 vss ndir nstep nwdata nwgate nhdsel nindex ntrk0 nwrtprt vcc nrdata ndskchg drvden1 drq_d clk14 drq_a ndack_a irmode/irrx3 ndack_d irrx2 irtx2 a15 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 drq_b d3 d2 d1 d0 vss aen niow nior a9 a8 a7 clk33 sirq a12 a11 ndack_b tc a6 a5 a4 a3 a2 a1 a0 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 nstrobe nautofd nerror ninit nslct vcc pd0 pd1 pd2 pd3 vss pd4 pd5 pd6 pd7 nack busy pe slct pwrgd reset_drv d7 d6 d5 d4 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 rxd1 txd1 ndsr1 nrts1 ncts1 ndtr1 nri1 ndcd1 nri2 ndcd2 rxd2 txd2 ndsr2 nrts2 ncts2 ndtr2 nadrx/nclkrun vss ndack_c a10 irqin drq_c iochrdy drvden0 nmtr0 FDC37N3869 100 pin tqfp
smsc ds ? FDC37N3869 page 9 rev. 10/25/2000 pin description buffer type per pin table 1 - description of pin functions tqfp pin # name symbol buffer mode 6 description host processor interface 46-49 51-54 data bus 0-7 d0-d7 io12 the data bus connection used by the host microprocessor to transmit data to and from the chip. these pins are in a high-impedance state when not in the output mode. 42 ni/o read nior is this active low signal is issued by the host microprocessor to indicate an i/o read operation. 43 ni/o write niow is this active low signal is issued by the host microprocessor to indicate an i/o write operation. 44 address enable aen is active high address enable indicates dma operations on the host data bus. used internally to qualify appropriate address decodes. 26-32 39-41, 95,35, 36,1, 3,25 address bus a0-a15 i these host address bits determine the i/o address to be accessed during nior and niow cycles. these bits are latched internally by the leading edge of nior and niow. all internal address decodes use the full a0 to a15 address bits. 19,50, 97,17 dma request a, b, c, d drq_a drq_b drq_c drq_d o12 these active high outputs are the dma request for byte transfers of data between the host and the chip. these signals are cleared on the last byte of the data transfer by the ndack signal going low (or by nior going low if ndack was already low as in demand mode). 20,34, 94,22 ndma acknowl- edge a, b, c, d ndack_a ndack_b ndack_c ndack_d is these are active low inputs acknowledging the request for a dma transfer of data between the host and the chip. these inputs enable the dma read or write internally. 33 terminal count tc is this signal indicates that dma data transfer is complete. tc is only accepted when ndack_x is low. in at and ps/2 model 30 modes, tc is active high and in ps/2 mode, tc is active low. 37 serial irq sirq io12 serial irq pin used with the clk33 pin to transfer FDC37N3869 interrupts to the host. 38 pci clock clk33 iclk 33mhz pci clock input, used with the sirq and the nclkrun pins to serially transfer FDC37N3869 interrupts to the host. 55 reset reset_ drv is this active high signal resets the chip and must be valid for 500ns minimum. the effect on the internal registers is described in the appropriate section. the configuration registers are not affected by this reset. 98 i/o channel ready (note 4 ) iochrdy od12 this pin is pulled low to extend the read/write command. iochrdy can used by the ircc and by the parallel port in epp mode. floppy disk interface 14 nread disk data nrdata is raw serial bit stream from the disk drive, low active. each falling edge represents a flux transition of the encoded data.
smsc ds ? FDC37N3869 page 10 rev. 10/25/2000 tqfp pin # name symbol buffer mode 6 description 8 nwrite gate nwgate (o12/ od12) this active low high current driver allows current to flow through the write head. it becomes active just prior to writing to the diskette. 7 nwrite data nwdata (o12/ od12) this active low high current driver provides the encoded data to the disk drive. each falling edge causes a flux transition on the media. 9 nhead select nhdsel (o12/ od12) this high current output selects the floppy disk side for reading or writing. a logic ?1? on this pin means side 0 will be accessed, while a logic ?0? means side 1 will be accessed. 5 direction control ndir (o12/ od12) this high current low active output determines the direction of the head movement. a logic ?1? on this pin means outward motion, while a logic ?0? means inward motion. 6 nstep pulse nstep (o12/ od12) this active low high current driver issues a low pulse for each track-to-track movement of the head. 15 disk change ndskchg is this input senses that the drive door is open or that the diskette has possibly been changed since the last drive selection. this input is inverted and read via bit 7 of i/o address 3f7h. the ndskchg bit also depends upon the stat e of the force disk change bits in the force fdd status change configuration regi ster (see section cr17 on page 107). 2 ndrive select 0 nds0 (o12/ od12) active low output selects drive 0. 100 nmotor on 0 nmtr0 (o12/ od12) these ac tive low output selects motor drive 0. 99 drive density 0 drvden0 (o12/ od12) indicates the dr ive and media selected. refer to configuration register s cr03, cr0b, cr1f. 12 nwrite protected nwrtprt is this active low schmitt trigger input senses from the disk drive that a disk is write protected. any write command is ignored. the nwrprt bit also depends upon the state of t he force write protect bit in the force fdd st atus change configuration register (see section cr17 on page 107). 11 wtrack 00 ntrk0 is this active low schmitt trigger input senses from the disk drive that the head is positioned over the outermost track. 10 nindex nindex is this active low schmitt trigger input senses from the disk drive that the head is positioned over the beginning of a track, as marked by an index hole. 16 drive density 1 drvden 1 (o12/ od12) indicates the drive and media selected. refer to configuration register s cr03, cr0b, cr1f. serial ports interface 86 receive data 2 rxd2 is receiver serial data input for port 2. ir receive data 87 transmit data 2 (note 5 ) txd2 o12pd transmit serial data output for port 2. ir transmit data. 76 receive data 1 rxd1 i receiver serial data input for port 1. 77 transmit data 1 txd1 o12 transmit serial data output for port 1.
smsc ds ? FDC37N3869 page 11 rev. 10/25/2000 tqfp pin # name symbol buffer mode 6 description 79,89 nrequest to send (system option) nrts1 nrts2 (sysopt) o6 active low request to send outputs for the serial port. handshake output signal notifies modem that the uart is ready to transmit data. this signal can be programmed by writing to bit 1 of the modem control register (mcr). the hardware reset will reset the nrts signal to inactive mode (high). nrts is forced inactive during loop mode operation. at the trailing edge of har dware reset the nrts2 inputs is latched to dete rmine the configuration base address: 0 = index base i/o address 3f0 hex; 1 = index base i/o address 370 hex. 81,91 ndata terminal ready ndtr1 ndtr2 o6 active low data terminal ready outputs for the serial port. handshake output signal notifies modem that the uart is ready to establish data communication link. this signal can be programmed by writing to bit 0 of modem control register (mcr). the hardware reset will reset the ndtr signal to inactive mode (high). ndtr is forced inactive during loop mode operation. 80,90 nclear to send ncts1 ncts2 i active low clear to send inputs for the serial port. handshake signal which notif ies the uart that the modem is ready to receive data. the cpu can monitor the status of ncts signal by reading bit 4 of modem status register (msr). a ncts signal state change from low to high after the last msr read will set msr bit 0 to a 1. if bit 3 of the interrupt enable register is set, the interrupt is generated when ncts changes state. the ncts signal has no effect on the transmitter. note: bit 4 of msr is the complement of ncts. 78,88 ndata set ready ndsr1 ndsr2 i active low data set ready inputs for the serial port. handshake signal which notif ies the uart that the modem is ready to establish the communication link. the cpu can monito r the status of ndsr signal by reading bit 5 of modem status register (msr). a ndsr signal state change from low to high after the last msr read will set msr bit 1 to a 1. if bit 3 of interrupt enable register is set, the interrupt is generated w hen ndsr changes state. note: bit 5 of msr is the complement of ndsr. 83,85 ndata carrier detect ndcd1 ndcd2 i active low data carrier de tect inputs for the serial port. handshake signal which notifies the uart that carrier signal is detected by the modem. the cpu can monitor the status of ndcd signal by reading bit 7 of modem status register (msr). a ndcd signal state change from low to high after the last msr read will set msr bit 3 to a 1. if bit 3 of interrupt enable register is set, the interrupt is generated when ndcd changes state. note: bit 7 of msr is the complement of ndcd.
smsc ds ? FDC37N3869 page 12 rev. 10/25/2000 tqfp pin # name symbol buffer mode 6 description 82,84 nring indicator nri1 nri2 i (note 1 ) active low ring indicator inputs for the serial port. handshake signal which notif ies the uart that the telephone ring signal is detected by the modem. the cpu can monitor the status of nri signal by reading bit 6 of modem status register (msr). a nri signal state change from low to high after the last msr read will set msr bit 2 to a 1. if bit 3 of interrupt enable register is set, the interrupt is generated when nri changes state. note: bit 6 of msr is the complement of nri. tqfp pin # name symbol buffer mode 6 description parallel port interface (note 2) 71 nprinter select input/fdc nstep pulse (note 3 ) nslct nstep (od14/op14)/od12 this active lo w output selects the printer. this is the complement of bit 3 of the printer control register. refer to parallel port description for use of this pin in ecp and epp mode. see fdc pin definition. 72 ninitiate output/ fdc ndirection control (note 3 ) ninit ndir (od14/op14)/od12 this output is bit 2 of the printer control register. this is used to initiate the printer when low. refer to parallel port description for use of this pin in ecp and epp mode. see fdc pin definition. 74 nautofeed output/ fdc ndensity select (note 3 ) nautofd ndensel (od14/op14)/od12 this output goes low to cause the printer to automatically feed one line after each line is printed. the nautofd output is the complement of bit 1 of the printer control register. refer to parallel port description for use of this pin in ecp and epp mode. see fdc pin definition. 75 nstrobe output/ fdc ndrive select 0 (note 3 ) nstrobe nds0 (od14/op14)/od12 an active low pulse on this output is used to strobe the printer data into the printer. the nstrobe output is the complement of bit 0 of the printer control register. refer to parallel port description for use of this pin in ecp and epp mode. see fdc pin definition. 59 busy/ fdc nmotor on 1 busy nmtr1 i/od12 this is a status output from the printer, a high indicating that the pr inter is not ready to receive new data. bit 7 of the printer status register is the complement of the busy input. refer to paralle l port description for use of this pin in ecp and epp mode. see fdc pin definition.
smsc ds ? FDC37N3869 page 13 rev. 10/25/2000 tqfp pin # name symbol buffer mode 6 description 60 nacknowl- edge/fdc ndrive select 1 nack nds1 i/od12 a low active output from the printer indicating that it has received the data and is ready to accept new data. bit 6 of the printer status regist er reads the nack input. refer to paralle l port description for use of this pin in ecp and epp mode. see fdc pin definition. 58 paper end/ fdc nwrite data pe nwrdata i/od12 another status output from the printer, a high indicating that the printer is out of paper. bit 5 of the printer status register reads the pe input. refer to parallel port description for use of this pin in ecp and epp mode. see fdc pin definition. 57 printer selected status/ fdc nwrite gate slct nwgate i/od12 this high active output from the printer indicates that it has power on. bit 4 of the printer status regist er reads the slct input. refer to paralle l port description for use of this pin in ecp and epp mode. see fdc pin definition. 73 nerror/fdc nhead select nerror nhdsel i/od12 a low on this input from the printer indicates that there is a error cond ition at the printer. bit 3 of the printer stat us register reads the nerr input. refer to parallel port description for use of this pin in ecp and epp mode. see fdc pin definition. 69 port data 0/fdc nindex pd0 nindex iop14/is port data 0 see fdc pin definition. 68 port data 1/fdc ntrack 0 pd1 ntrk0 iop14/is port data 1 see fdc pin definition. 67 port data 2/fdc nwrite protected pd2 nwrtprt iop14/is port data 2 see fdc pin definition. 66 port data 3/fdc nread disk data pd3 nrdata iop14/is port data 3 see fdc pin definition. 64 port data 4/fdc ndisk change pd4 ndskchg iop14/is port data 4 see fdc pin definition. 63 port data 5 pd5 iop14 port data 5 62 port data 6/fdc nmotor on 0 pd6 nmtr0 iop14/ od12 port data 6 see fdc pin definition. 61 port data 7 pd7 iop14 port data 7
smsc ds ? FDC37N3869 page 14 rev. 10/25/2000 tqfp pin # name symbol buffer mode 6 description alternate ir pins/misc 18 14.318 mhz input clock clk14 iclk the external connection to a single source 14.318 mhz clock. 23 ir receive 2 irrx2 is ir receive input 24 ir transmit 2 (note 5 ) irtx2 o12pd ir transmit output 92 address x/ pci clock controller nadrx/ nclkrun od12/ iod12 the active-low address decoder output nadrx can be asserted on 1, 8, or 16-byte address boundaries (an external pull-up is required). refer to configuration registers cr03, cr08, and cr09 for more information. nclkrun is used to indicate the pci clock status and to request that a stopped clock be started. 21 ir mode/ ir receive 3 irmode/ irrx3 o6/is ir mode ir receive 3 56 power good/ ngame port chip select pwrgd ngamecs i/o4 this active high input in dicates that the power (vcc) is valid. for device operation pwrgd must be active. when pwrgd is inactive, all inputs are disconnected and put into a low power mode; all outputs are put into high im pedance. the contents of all registers are preserved as long as vcc is valid. the output driver current drain when pwrgd is inactive mode drops to i stby - standby current. this is the game port chip select output - active low. it will go active when the i/o address, qualified by aen, matches that selected in configuration register cr1e. 96 external interrupt input irqin is this pin is used to steer an interrupt signal from an external device onto one of 15 irqs. power interface 13,70 power vcc positive supply voltage. (3.3v) 4,45, 65,93 ground vss ground supply. note 1: nri and the uart interrupts are active when pwrgd is active and the uarts are either fully powered or in autopower down mode. note 2: the fdd output pins multiplexed in the parallel port interface are od drivers only and are not affected by the fdd output driver controls (see section cr05 on page 102). note 3: active (push-pull) output drivers are required on these pins in the enhanced parallel port modes. note 4: an external pull-up must be provided for iochrdy. note 5: the pull-down on this pin is always active including w hen the output driver is tris tated and regardless of the state of pwrgd. note 6: buffer modes describe the pad driver properties per function. buffer modes on multiplexed pins are separated by a slash ?/?. for exampl e, the buffer modes for a multiplex ed pin with two functions where the primary function is an input and the secondary function is an 8ma bidirectional driver is ?i/io8?. buffer modes in parenthesis represent multiple buffer modes for a single pin function.
smsc ds ? FDC37N3869 page 15 rev. 10/25/2000 buffer type summary table 2 below describes the buffer types shown in table 1. all values are specified at v cc = +3.3v, 10% table 2 - FDC37N3869 buffer type summary (see note) buffer type description io12 input/output. 12ma sink; 6ma source o12 output. 12ma sink; 6ma source o12pd output. 12ma sink; 6ma source with 30a pull-down od12 open drain. 12ma sink o6 output. 6ma sink; 3ma source od14 open drain. 14ma sink op14 output. 14ma sink; 14ma source. backdrive protected iop14 input/output. 14ma sink; 14ma source. backdrive protected o4 output. 4ma sink; 2ma source iclk input to crystal osc illator circuit (ttl levels) i input ttl compatible is input with schmitt trigger iod12 input/open drain ou tput. 12ma sink note: these are minimum ratings guaranteed at 3.3v.
smsc ds ? FDC37N3869 page 16 rev. 10/25/2000 output drivers active output drivers in t he FDC37N3869 will always achieve the minimum specified dc electrical characteristics shown in table 120. note: if there is a pull-up on an external node driven by an ac tive output driver the f dc37n3869 may sink current from the pull-up through the low impedance source. figure 2 - FDC37N3869 block diagram ndsr1, ndcd1, nri, ndtr1 txd1, ncts1, nrts1, nslctin/nstep,nini t/ndir, nautofd/ ndensel, nstrobe/nds0, busy/nmtr1, nack/nds1, pe/nwrdata,nerr or/nhdsel, pd0/nindex, pd1/ntrk0, pd2/nwrtprt, pd3/nrdata, pd4/ndskchg, pd5/ pd6/nmtr, pd7 host cpu multi-mode parallel port/fdc mux 16c550 compatible serial port 1 16c550 compatible serial port 2 with infrared configuration registers power management interface control bus address bus data bus clock gen nindex ntrk0 ndskchg nwrprt nwgate ndir nstep drvden0 drvden1 nds0 nmtr0 rdata rclock wdata wclock nwdata nrdata rxd1 vcc (2) vss (4) smsc proprietary 82077 compatible vertical floppydisk controller core digital data separator with write precom- pensation txd2/irtx,ncts2, nrts2 see power mgt ncs nior niow aen a0-a15 d0-d7 drq_a-d ndack_a-d tc clk33 irqin iochrdy reset rxd2/irrx game port decoder sirq ndsr2,ndcd2, nri2,ndtr2 14.318 clock pwrgd/ngamecs ir mode/irr3 nadrx/nclkrun nhdsel irrx2, irtx2 ir
smsc ds ? FDC37N3869 page 17 rev. 10/25/2000 functional description super i/o registers table 3 shows the addresses of the various device blocks of the super i/o immediately after power up. the base addresses must be set in the conf iguration registers before a ccessing these devices. the base addresses of the fdc, serial and parallel ports can be moved via the configurat ion registers. host processor interface the host processor communicates with the FDC37N3869 us ing the super i/o registers. register access is accomplished through programmed i/o or dma transfers. all r egisters are 8 bits wide. all host interface output buffers are capable of sinking a minimum of 12 ma. table 3 - FDC37N3869 block addresses address block name notes 3f0, 3f1 or 370, 371 confi guration write only; note 1 base +[0:7] floppy disk disabled at power up; note 2 base +[0:7] serial port com 1 disabled at power up; note 2 base1 +[0:7] base2 +[0:7] serial port com 2 disabled at power up; note 2 base +[0:3] all modes base +[4:7] for epp base +[400:403] for ecp parallel port disabled at power up; note 2 note 1: configuration registers can only be m odified in the configur ation state, refer to section configuration on page 96 for more information. all logical blocks in the f dc37n3869 can operate normally in the configuration state. note 2: the base addresses must be set in the configur ation registers before accessing device blocks. floppy disk controller the floppy disk controller (fdc) provides the interface between a host microprocessor and the floppy disk drives. the fdc integrates the func tions of the formatter/contro ller, digital data separat or, write precompensation and data rate selection logic for an ibm xt/at compatible fdc. the true cmos 765b core guarantees 100% ibm pc xt/at compatibility in addition to providi ng data overflow and underflow protection. the FDC37N3869 is compatible with the 82077aa using sm sc?s proprietary floppy disk controller core. for information about the floppy disk on the parallel port pins re fer to section parallel port floppy disk controller on page 54. modes of operation the FDC37N3869 floppy disk controller has two floppy modes and three interface modes. each of the three interface modes are available in each of the two floppy modes. floppy modes the floppy modes are used to select alte rnate configurations for the tape drive register. the active floppy mode is determined by the enhanced floppy mode 2 bit in configuration register 3 (see section cr03 on page 100). when the enhanced floppy mode 2 bit is 0 normal floppy mode is selected, otherwise enhanced floppy mode 2 (os/2 mode) is selected. see section tape drive register (tdr) on page 24 for the affects of the enhanced floppy mode 2 bit on the tape drive register.
smsc ds ? FDC37N3869 page 18 rev. 10/25/2000 interface modes the interface modes are determined by the mfm and ident configuration bits in c onfiguration register 3 (see section cr03 on page 100). pc/at interface mode when both ident and mfm are high the pc/at register set is enabled, the dma enable bit of the digital output register becomes valid, fintr and drq can be hi-z, and tc and densel become active high. ps/2 interface mode when ident is low and mfm is high ps/2 interface mode is selected. this m ode supports the ps/2 models 50/60/80 configuration and r egister set. the dma bit of the digital out put register becomes a ?don?t care,? fintr and drq are always valid, tc and densel become active low. model 30 interface mode when both ident and mfm are low model 30 interface m ode is selected. this mode supports ps/2 model 30 configuration and register set. the dma enable bit of the digital output register becomes valid, fintr and drq can be hi-z, tc is active high and densel is active low. floppy disk controller internal registers the floppy disk controller contains eight internal r egisters that provide the interface between the host microprocessor and the floppy disk drives. table 4 shows the addresses required to a ccess these registers. registers other than the ones shown are not supported. table 4 - status, data and control registers base i/o address register +0 +1 +2 +3 +4 +4 +5 +6 +7 +7 r r r/w r/w r w r/w r w status register a status register b digital output register tape drive register main status register data rate select register data (fifo) reserved digital input register configuration control register sra srb dor tdr msr dsr fifo dir ccr status register a (sra) status register a (base address + 0) monitors the state of t he fintr pin and several disk interface pins in ps/2 interface mode (table 5) and model 30 interface mode (table 6). sra is read-only and can be accessed at any time when in these modes. during a read in the pc/at interf ace mode the data bus pins d0 - d7 are held in a high impedance state.
smsc ds ? FDC37N3869 page 19 rev. 10/25/2000 ps/2 interface mode table 5 - sra ps/2 mode 7 6 5 4 3 2 1 0 int pending ndrv2 step ntrk0 hdsel nindx nwp dir reset condition 0 1 0 n/a 0 n/a n/a 0 direction, bit 0 active high status indicating the direct ion of head movement. a logic ?1? indi cating inward direction, a logic ?0? outward. nwrite protect, bit 1 active low status of the write protect disk interface input. a logic ?0? indicating that the disk is write protected. the nwrite protect bit also depends upon the state of the force write protect bits in the force fdd status change configuration regist er (see section cr17). nindex, bit 2 active low status of the index disk interface input. head select, bit 3 active high status of the hdsel disk interface input. a logic ?1? selects side 1 and a logic ?0? selects side 0. ntrack 0, bit 4 active low status of the trk0 disk interface input. step, bit 5 active high status of the step output disk interface output pin. ndrv2, bit 6 the ndrv2 bit is always ?1?. interrupt pending, bit 7 active high bit indicating the state of the floppy disk interrupt output.
smsc ds ? FDC37N3869 page 20 rev. 10/25/2000 ps/2 model 30 interface mode table 6 - sra ps/2 model 30 mode 7 6 5 4 3 2 1 0 int pending drq step f/f trk0 nhdsel indx wp ndir reset condition 0 0 0 n/a 1 n/a n/a 1 ndirection, bit 0 active low status indicating the direct ion of head movement. a logic ?0? indicati ng inward direction a logic ?1? outward. write protect, bit 1 active high status of the write protect disk interface input. a logic ?1? indicating that t he disk is write protected. the nwrite protect bit also depends upon the state of the force write protect bits in the force fdd status change configuration register (see section cr17 on page 109). index, bit 2 active high status of the index disk interface input. nhead select, bit 3 active low status of the hdsel disk interface input. a logic ?0? selects side 1 and a logic ?1? selects side 0. track, bit 4 active high status of the trk0 disk interface input. step, bit 5 active high status of the latched step di sk interface output pin. this bit is latched with the step output going active, and is cleared with a read from the dir regist er, or with a hardware or software reset. dma request, bit 6 active high status of the drq output pin. interrupt pending, bit 7 active high bit indicating the state of the floppy disk interrupt output.
smsc ds ? FDC37N3869 page 21 rev. 10/25/2000 status register b (srb) status register b (base address + 1) is read-only and monitors the state of several disk interface pins in ps/2 interface mode (table 7) and model 30 interface mode (table 8). srb can be accessed at any time when in these modes. during a read in pc/at interface mode the data bus pins d0 - d7 are held in a high impedance state. ps/2 interface mode table 7 - srb ps/2 mode 7 6 5 4 3 2 1 0 1 1 drive sel0 wdata toggle rdata toggle wgate mot en1 mot en0 reset condition 1 1 0 0 0 0 0 0 motor enable 0, bit 0 active high status of the mtr0 disk in terface output pin. this bit is low after a hardware reset and unaffected by a software reset. motor enable 1, bit 1 active high status of the mtr1 disk in terface output pin. this bit is low after a hardware reset and unaffected by a software reset. write gate, bit 2 active high status of the wgate disk interface output. read data toggle, bit 3 every inactive edge of the rdata input causes this bit to change state. write data toggle, bit 4 every inactive edge of the wdata input causes this bit to change state. drive select 0, bit 5 reflects the status of the dr ive select 0 bit of the dor (address 3f2 bit 0). this bit is cleared after a hardware reset, it is unaffected by a software reset. reserved, bits 6 - 7 always read as a logic ?1?.
smsc ds ? FDC37N3869 page 22 rev. 10/25/2000 ps/2 model 30 interface mode table 8 - srb ps/2 model 30 mode 7 6 5 4 3 2 1 0 ndrv2 nds1 nds0 wdata f/f rdata f/f wgate f/f nds3 nds2 reset condition n/a 1 1 0 0 0 1 1 ndrive select 2, bit 0 active low status of the ds2 disk interface output. ndrive select 3, bit 1 active low status of the ds3 disk interface output. write gate, bit 2 active high status of the latched wgat e output signal. this bit is latched by the active going edge of wgate and is cleared by the read of the dir register. read data, bit 3 active high status of the latched rdata output signal. this bit is latched by the inactive going edge of rdata and is cleared by the read of the dir register. write data, bit 4 active high status of the latched wdat a output signal. this bit is latched by the inactive going edge of wdata and is cleared by the read of t he dir register. this bit is not gated with wgate. ndrive select 0, bit 5 active low status of the ds0 disk interface output. ndrive select 1, bit 6 active low status of the ds1 disk interface output. ndrv2, bit 7 the ndrv2 bit is always ?1?.
smsc ds ? FDC37N3869 page 23 rev. 10/25/2000 digital output register (dor) the digital output register (base a ddress + 2) controls the drive select and motor enables of the disk interface outputs (table 9 and table 10). the dor also contains the dma logic enable and a software reset bit. the dor is read/write and unaffected by a software reset. table 9 - digital output register 7 6 5 4 3 2 1 0 mot en3 mot en2 mot en1 mot en0 dmaen nreset drive sel1 drive sel0 reset condition 0 0 0 0 0 0 0 0 dor bit descriptions drive select, bits 0 - 1 these two bits are binary encoded for the four drive selects ds0-ds 3, there by allowing only one drive to be selected at one time. nreset, bit 2 a logic ?0? written to this bit resets the floppy disk controller. this reset will remain active until a logic ?1? is written to this bit. this software reset does not affect the dsr and ccr registers, nor does it affect the other bits of the dor register. the minimum reset duration r equired is 100ns, therefore t oggling this bit by consecutive writes to this register is a valid method of issuing a software reset. dmaen, bit 3 pc/at and model 30 interface mode in pc/at and model 30 mode writing this bit to logic ?1 ? will enable the drq, ndack, tc and fintr outputs. this bit being a logic ?0? will disable the ndack and tc i nputs, and hold the drq and fint r outputs in a high impedance state. in pc/at and model 30 mode the dmaen bit is a logic ?0? after a reset. ps/2 interface mode in ps/2 mode the drq, ndack, tc and fintr pins are al ways enabled. during a reset the drq, ndack, tc, and fintr pins will remain enabled, but the dm aen bit will be cleared to a logic ?0?. motor enable 0, bit 4 this bit controls the mtr0 disk interface output. a logi c ?1? in this bit will cause the output pin to go active. motor enable 1, bit 5 this bit controls the mtr1 disk interface output. a logi c ?1? in this bit will cause the output pin to go active. motor enable 2, bit 6 the motor enable 2 bit controls the mtr2 disk interface output. a logic ?1? in this bit will cause the output pin to go active. motor enable 3, bit 7 the motor enable 3 bit controls the mtr3 disk interface out put. a logic ?1? in this bit causes the output to go active. table 10 - drive activation values drive dor value 0 1ch 1 2dh 2 4eh 3 8fh
smsc ds ? FDC37N3869 page 24 rev. 10/25/2000 table 11 - internal 2 drive decode: drives 0 and 1 digital output register drive select outputs (active low) motor on outputs (active low) bit 7 bit 6 bit 5 bit 4 bit1 bit 0 nds1 nds0 nmtr1 nmtr0 x x x 1 0 0 1 0 nbit 5 nbit 4 x x 1 x 0 1 0 1 nbit 5 nbit 4 x 1 x x 1 0 1 1 nbit 5 nbit 4 1 x x x 1 1 1 1 nbit 5 nbit 4 0 0 0 0 x x 1 1 nbit 5 nbit 4 tape drive register (tdr) the tape drive register (base address + 3) is included fo r 82077 software compatibility and allows the user to assign tape support to a particular drive during in itialization. any future reference to that drive automatic ally invokes tape support. the tape select bits tdr.[1:0] determine the t ape drive number. table 12 illustrates the tape select bit encoding. note that drive 0 is the boot device and cannot be assigned tape support. the encoding of the tdr depends on the floppy mode (see section floppy modes on page 17). the tdr is unaffected by a software reset. table 12 - tape select bits tape sel1 (tdr.1) tape sel0 (tdr.0) drive selected 0 0 none 0 1 1 1 0 2 1 1 3 normal floppy mode in normal mode the tdr contains only bits 0 and 1 (table 13). during a read in normal mode tdr bits 2 - 7 are high impedance. the tape select bits are read/write. table 13 - tdr normal floppy mode db7 db6 db5 db4 db3 db2 db1 db0 tdr tri-state tri-state tri-stat e tri-state tri-state tri-state tape sel1 tape sel0 enhanced floppy mode 2 (os2) the configuration of the tdr in the enhanced floppy mode 2 (os/ 2 mode) is shown in table 14. table 14 - tdr enhanced floppy mode 2 db7 db6 db5 db4 db3 db2 db1 db0 tdr reserved drive type id floppy boot drive tape sel1 tape sel0 reserved, bits 6 - 7 bits 6 and 7 are reserved . reserved bits cannot be written and return 0 when read.
smsc ds ? FDC37N3869 page 25 rev. 10/25/2000 drive type id, bits 4 - 5 the drive type id bits depend on the last drive selected in the digital output register and the drive type ids that are programmed in configurat ion register 6 (table 15). table 15 - drive type id digital output register tdr - drive type id bit 1 bit 0 bit 5 bit 4 0 0 cr6 - bit 1 cr6 - bit 0 0 1 cr6 - bit 3 cr6 - bit 2 1 0 cr6 - bit 5 cr6 - bit 4 1 1 cr6 - bit 7 cr6 - bit 6 floppy boot drive, bits 2 - 3 the floppy boot drive bits come from configuration regist er 7: tdr bit 3 = cr7 bit 1; tdr bit 2 = cr7 bit 0. tape drive select, bits 0 - 1 the tape drive select bits are the same as in normal mode. these bits are read/write. main status register (msr) the main status register (base addr ess + 4: read-only) indicates the status of the disk controller (table 16). the main status register is valid in a ll modes and can be read at any time. the msr indicates when the disk controller is ready to receive data via the data register. it should be read before transferring each by te to or from the data register, except in dma mode. no delay is required when reading the ms r after a data transfer. table 16 - main status register 7 6 5 4 3 2 1 0 msr rqm dio non dma cmd busy drv3 busy drv2 busy drv1 busy drv0 busy drvx busy, bits 0 - 3 these bits are set to a ?1? when a drive is in the s eek portion of a command, incl uding implied and overlapped seeks and recalibrates. command busy, bit 4 this bit is set to a ?1? when a command is in progress. this bit will go active after the command byte has been accepted and goes inactive at the end of the results phase. if there is no result phase (seek, recalibrate commands), this bit is returned to a ?0? after the last command byte. non-dma, bit 5 this mode is selected in the specify command and will be se t to a ?1? during the exec ution phase of a command. this is for polled data transfers and helps to differentia te between the data transfer phas e and the reading of result bytes. dio, bit 6 indicates the direction of a data trans fer once an rqm is set. a ?1? indicates a read and a ?0? indicates a write is required. rqm, bit 7 indicates that the host can transfer data if set to a ?1?. no access is pe rmitted if set to a ?0?.
smsc ds ? FDC37N3869 page 26 rev. 10/25/2000 data rate select register (dsr) the data rate select register (base address + 4: writ e-only) is used to program t he data rate, amount of write precompensation, power down st atus, and software reset (table 17). note: the data rate is pr ogrammed using the configuration control register ( ccr) not the dsr, for pc/at and ps/2 model 30 and microchannel applications. other applications can set the data rate in the dsr. the data rate of the floppy controller is the most recent write of either the dsr or ccr. the dsr is unaffected by a software reset. a hardware reset will set the dsr to 02h, which corresponds to the default prec ompensation setting and 250 kbps. table 17 - data rate select register 7 6 5 4 3 2 1 0 s/w reset power down 0 pre- comp2 pre- comp1 pre- comp0 drate sel1 drate sel0 reset condition 0 0 0 0 0 0 1 0 data rate select, bits 0 - 1 these bits control the data rate of t he floppy controller. see table 19 for the settings corresponding to the individual data rates. the data rate select bi ts are unaffected by a software reset and are set to 250 kbps after a hardware reset. precompensation select, bits 2 - 4 these three bits select the value of write precompensation that will be applied to the wdata output signal. table 18 shows the precompensati on values for the combination of these bits settings. track 0 is the default starting track number to start precompensation. the starting track number can be changed usi ng the configure command. undefined, bit 5 should be written as a logic ?0?. low power, bit 6 a logic ?1? written to this bit will put the floppy controlle r into manual low power mode. the floppy controller clock and data separator circuits will be turned off. the controller will come out of manual low power mode after a software reset or following access to the data register or main status register. software reset, bit 7 this active high bit has the same function as the dor reset (dor bit 2) except that this bit is self clearing. table 18 - precompensation delays precomp select precompensation delay 4 3 2 1 1 1 0.00 ns-disabled 0 0 1 41.67 ns 0 1 0 83.34 ns 0 1 1 125.00 ns 1 0 0 166.67 ns 1 0 1 208.33 ns 1 1 0 250.00 ns 0 0 0 default (see table 21)
smsc ds ? FDC37N3869 page 27 rev. 10/25/2000 table 19 - data rates drive rate select (cr0b) data rate select (dsr) data rate densel (note 1) drate drt1 drt0 sel1 sel0 mfm fm ident=1 ident=0 1 0 0 0 1 1 1meg --- 1 0 1 1 0 0 0 0 500 250 1 0 0 0 0 0 0 1 300 150 0 1 0 1 0 0 1 0 250 125 0 1 1 0 0 1 1 1 1meg --- 1 0 1 1 0 1 0 0 500 250 1 0 0 0 0 1 0 1 500 250 0 1 0 1 0 1 1 0 250 125 0 1 1 0 1 0 1 1 1meg --- 1 0 1 1 1 0 0 0 500 250 1 0 0 0 1 0 0 1 2meg --- 0 1 0 1 1 0 1 0 250 125 0 1 1 0 note 1: this is for densel in normal mode (see section cr05 on page 102). the densel pin is set high after a hardware reset and is unaffected by the dor and the dsr resets. table 20 - drive rate table (recommended) drive rate format drt1 drt0 (see section cr0b on page 104 to program drive rate) 0 0 360k, 1.2m, 720k, 1.44m and 2.88m vertical format 0 1 3-mode drive 1 0 2 meg tape table 21 - default precompensation delays data rate precompensation delays 2 mbps 125 ns 1 mbps 41.67 ns 500 kbps 125 ns 300 kbps 125 ns 250 kbps 125 ns
smsc ds ? FDC37N3869 page 28 rev. 10/25/2000 data register (fifo) the data register (base address + 5) is used to trans fer all command parameter info rmation, disk data and result status between the host processo r and the floppy disk controller. the data regi ster is read/write. data transfers are governed by the rqm and dio bits in the main status register. the data register defaults to fifo disabled mode afte r any form of reset. this maintains pc/at hardware compatibility. the default values c an be changed through the configure comm and (enable full fifo operation with threshold control). the advantage of the fifo is that it allows the system a larger dma latenc y without causing a disk error. table 22 gives several examples of service delays with a fifo. the data is based upon the following formula: threshold# (8 data rate) - 1.5 s = delay at the start of a command the fifo action is always disabled and command parameter s must be sent based upon the rqm and dio bit settings. as the command execution phase is entered, the fifo is cl eared of any data to ensure that invalid data is not transferred. an overrun or underrun will terminate t he current command and the transfer of dat a. disk writes will complete the current sector by generating a 00 pattern and valid crc. reads require the hos t to remove the remaining data so that the result phase may be entered. table 22 - example fifo service delays example data rates fifo threshold examples 2mbps 1mbps 500kbps 1 byte 1 x 4 s - 1.5 s = 2.5 s 1 x 8 s - 1.5 s = 6.5 s 1 x 16 s - 1.5 s = 14.5 s 2 bytes 2 x 4 s - 1.5 s = 6.5 s 2 x 8 s - 1.5 s = 14.5 s 2 x 16 s - 1.5 s = 30.5 s 8 bytes 8 x 4 s - 1.5 s = 30.5 s 8 x 8 s - 1.5 s = 62.5 s 8 x 16 s - 1.5 s = 126.5 s 15 bytes 15 x 4 s - 1.5 s = 58.5 s 15 x 8 s - 1.5 s = 118.5 s 15 x 16 s - 1.5 s = 238.5 s digital input register (dir) the digital input register (bass addre ss + 7: read-only) is read-only in all m odes. table 23 shows the dir in pc/at mode, table 24 shows the dir in ps/2 mode, and table 25 show s the dir in model 30 mode. pc-at interface mode table 23 - dir pc/at interface mode 7 6 5 4 3 2 1 0 dsk chg reset condition n/a n/a n/a n/a n/a n/a n/a n/a undefined, bits 0 - 6 the data bus outputs d0 - 6 will remain in a hi gh impedance state during a r ead of this register. dsk chg, bit 7 the dsk chg bit monitors the state of the pin of the same name and refl ects the opposite value seen on the disk cable. the dsk chg bit also depends upon the force disk change bits in the force f dd status change register (see section cr17 on page 107).
smsc ds ? FDC37N3869 page 29 rev. 10/25/2000 ps/2 interface mode table 24 - dir ps/2 interface mode 7 6 5 4 3 2 1 0 dsk chg 1 1 1 1 drate sel1 drate sel0 nhigh dens reset condition n/a n/a n/a n/a n/a n/a n/a 1 nhigh dens, bit 0 this bit is low whenever the 500 kbps or 1 mbps data rates are selected, and high when 250 kbps and 300 kbps are selected. data rate select, bits 1 - 2 these bits control the data rate of t he floppy controller. see table 19 for t he settings corresponding to the individual data rates. the data rate select bi ts are unaffected by a software reset, and are set to 250 kbps after a hardware reset. undefined, bits 3 - 6 always read as a logic ?1? dsk chg, bit 7 the dsk chg bit monitors the pin of the same name and reflects the opposite value s een on the disk cable. the dsk chg bit also depends upon the force disk change bits in the force fdd status c hange register (see section cr17 on page 107). model 30 interface mode table 25 - dir model 30 interface mode 7 6 5 4 3 2 1 0 dsk chg 0 0 0 dmaen noprec drate sel1 drate sel0 reset condition n/a 0 0 0 0 0 1 0 data rate select, bits 0 - 1 these bits control the data rate of t he floppy controller. see table 19 for t he settings corresponding to the individual data rates. the data rate select bits are unaffected by a software reset, and are set to 250kb/s after a hardware reset noprec, bit 2 this bit reflects the value of the noprec bit set in the ccr register. dmaen, bit 3 this bit reflects the value of dmaen bit set in the dor register bit 3. undefined, bits 4 - 6 always read as a logic ?0? dsk chg, bit 7 the dsk chg bit monitors the pin of the same name and re flects the opposite value seen on the pin. the dsk chg bit also depends upon the force disk change bits in the fo rce fdd status change regi ster (see section cr17 on page 107). configuration control register (ccr) the configuration control register (b ass address + 7: write-only) is writ e-only in all modes. table 26 shows the ccr in pc/at mode and ps/2 mode. table 27 shows the ccr in model 30 mode. pc/at and ps/2 interface modes table 26 - ccr pc/at and ps/2 interface modes 7 6 5 4 3 2 1 0
smsc ds ? FDC37N3869 page 30 rev. 10/25/2000 drate sel1 drate sel0 reset condition n/a n/a n/a n/a n/a n/a 1 0 data rate select, bits 0 - 1 these bits determine the data rate of the floppy c ontroller. see table 19 for the appropriate values. reserved, bits 2 - 7 bits 2 to 7 are reserved . reserved bits cannot be written and return 0 when read. model 30 interface mode table 27 - ccr model 30 interface mode 7 6 5 4 3 2 1 0 noprec drate sel1 drate sel0 reset condition n/a n/a n/a n/a n/a n/a 1 0 data rate select, bits 0 - 1 these bits determine the data rate of the floppy c ontroller. see table 19 for the appropriate values. no precompensation, bit 2 this bit can be set by software, but it has no functionalit y. it can be read by bit 2 of the dsr when in model 30 register mode. unaffected by software reset. reserved, bits 3 - 7 bits 3 to 7 are reserved . reserved bits cannot be written and return 0 when read.
smsc ds ? FDC37N3869 page 31 rev. 10/25/2000 status register encoding during the result phase of certain comm ands, the data register contains data bytes that give t he status of the command just executed. table 28 - status register 0 bit no. symbol name description 7,6 ic interrupt code 00 - normal termination of command. the specified command was properly executed and complet ed without error. 01 - abnormal termination of command . command execution was started, but was not successfully completed. 10 - invalid command. the reques ted command could not be executed. 11 - abnormal termination caused by polling. 5 se seek end the fdc completed a seek, relative seek or recalibrate command (used during a sense interrupt command). 4 ec equipment check the trk0 pin failed to become a ?1? after: 1. 80 step pulses in the recalibrate command. 2. the relative seek command caus ed the fdc to step outward beyond track 0. 3 unused. this bit is always ?0?. 2 h head address the current head address. 1,0 ds1,0 drive select the current selected drive. table 29 - status register 1 bit no. symbol name description 7 en end of cylinder the fdc tried to access a sector beyond t he final sector of the track (255d). will be set if tc is not issued after read or write data command. 6 unused. this bit is always ?0?. 5 de data error the fdc detected a crc error in either the id field or the data field of a sector. 4 or overrun/ underrun becomes set if the fdc does not rece ive cpu or dma service within the required time interval, resulti ng in data overrun or underrun. 3 unused. this bit is always ?0?. 2 nd no data any one of the following: 1. read data, read deleted data command - the fdc did not find the specified sector. 2. read id command - the fdc cannot read the id field without an error. 3. read a track command - the fdc cannot find the proper sector sequence. 1 nw not writable wp pin became a ?1? while the fdc is executing a write data, write deleted data, or format a track command. 0 ma missing address mark any one of the following: 1. the fdc did not detect an id address mark at the specified track after encountering the index pulse from the idx pin twice. 2. the fdc cannot detect a data addre ss mark or a deleted data address mark on the specified track.
smsc ds ? FDC37N3869 page 32 rev. 10/25/2000 table 30 - status register 2 bit no. symbol name description 7 unused. this bit is always ?0?. 6 cm control mark any one of the following: 1. read data command - the fdc encountered a deleted data address mark. 2. read deleted data command - the fdc encountered a data address mark. 5 dd data error in data field the fdc detected a crc error in the data field. 4 wc wrong cylinder the track address from the sector id fiel d is different from the track address maintained inside the fdc. 3 unused. this bit is always ?0?. 2 unused. this bit is always ?0?. 1 bc bad cylinder the track address from the sector id fiel d is different from the track address maintained inside the fdc and is equal to ff hex, which indicates a bad track with a hard error accordi ng to the ibm soft-sectored format. 0 md missing data address mark the fdc cannot detect a data address mark or a deleted data address mark. table 31 - status register 3 bit no. symbol name description 7 unused. this bit is always ?0?. 6 wp write protected indicates the status of the wp pin. the write protected bit also depends upon the state of the forc e write protect bits in the force fdd status change configuration regi ster (see section cr17 on page 109). 5 unused. this bit is always ?1?. 4 t0 track 0 indicates the status of the trk0 pin. 3 unused. this bit is always ?1?. 2 hd head address indicates the status of the hdsel pin. 1,0 ds1,0 drive select indicates the status of the ds1, ds0 pins. reset there are three sources of system re set on the fdc: the reset pin of t he FDC37N3869, a reset generated via a bit in the dor, and a reset generated via a bit in the dsr. at power on, a power on reset initializes the fdc. all resets take the fdc out of the power down state. all operations are terminated upon a reset, and the fdc enters an idle state. a reset while a disk write is in progress will corrupt the data and crc. on exiting the reset state, various internal registers are cleared, includi ng the configure command information, and the fdc waits for a new command. drive polling will start unless disabled by a new configure command. reset pin (hardware reset) the reset pin is a global reset and clears all registers except those programmed by the specify command. the dor reset bit is enabled and must be cleared by the host to exit the reset state.
smsc ds ? FDC37N3869 page 33 rev. 10/25/2000 dor reset vs. dsr reset (software reset) these two resets are functionally the same. both will re set the fdc core, which affect s drive status information and the fifo circuits. the dsr reset clears itself automatically while the dor reset requires the host to manually clear it. dor reset has precedence over the dsr reset. the dor rese t is set automatically upon a pin reset. the user must manually clear this reset bit in t he dor to exit the reset state. dma transfers dma transfers are enabled with the spec ify command and are initiat ed by the fdc by activating the fdrq pin during a data transfer command. the fifo is enabled direct ly by asserting ndack and addresses need not be valid. note that if the dma controller (i.e . 8237a) is programmed to function in ve rify mode, a pseudo read is performed by the fdc based only on ndack. this mode is only ava ilable when the fdc has been configured into byte mode (fifo disabled) and is programmed to do a read. with the fifo enabled, the fdc can perform the above operation by using the new verify co mmand; no dma operation is needed. controller phases for simplicity, command handling in the fdc can be divided into three phases: command, execution, and result. each phase is described in the following sections. command phase after a reset, the fdc enters the command phase and is ready to accept a command from the host. for each of the commands, a defined set of command code bytes and parameter bytes has to be written to the fdc before the command phase is complete. (refer to table 33 for the command set descriptions). these bytes of data must be transferred in the order prescribed. before writing to the fdc, the host mu st examine the rqm and dio bits of t he main status register. rqm and dio must be equal to ?1? and ?0? respectively before command byte s may be written. rqm is set false by the fdc after each write cycle until the received byte is processed. the fdc asserts rqm again to request each parameter byte of the command unless an illegal command conditi on is detected. after the last parameter byte is received, rqm remains ?0? and the fdc automatic ally enters the next phase as def ined by the command definition. the fifo is disabled during the command phase to prov ide for the proper handling of the ?invalid command? condition. execution phase all data transfers to or from the f dc occur during the execution phase, wh ich can proceed in dma or non-dma mode as indicated in the specify command. after a reset, the fifo is disabled. each data byte is transferred by an fint or fdrq depending on the dma mode. the configure command can enable the fifo and set the fifo threshold value. the following paragraphs detail the operation of the fifo flow control. in these descriptions, is defined as the number of bytes available to the fdc when service is requested from the host and ranges from 1 to 16. the parameter fifothr, which the user progr ams, is one less and ranges from 0 to 15. a low threshold value (i.e. 2) results in longer periods of time between service requests, but requires faster servicing of the request for both read and write cases. the host reads (writes) from (to) the fifo until empt y (full), then the transfer request goes inactive. the host must be very respons ive to the service request. this is the desired case for use with a ?fast? system. a high value of threshold (i.e. 12) is used with a ?sluggish? system by affording a long latency period after a service request, but resu lts in more frequent service requests.
smsc ds ? FDC37N3869 page 34 rev. 10/25/2000 non-dma mode transfers fifo to host the fint pin and rqm bits in the main status register are acti vated when the fifo contai ns (16-) bytes or the last bytes of a full sector have been placed in the fifo. the fint pin can be used for interrupt-driven systems,and rqm can be used for polled sy stems. the host must respond to the request by reading data from the fifo. this process is repeat ed until the last byte is trans ferred out of the fifo. the fdc will deactivate the fint pin and rqm bit when the fifo becomes empty. host to fifo the fint pin and rqm bit in the main status register are activated upon entering t he execution phase of data transfer comm ands. the host must respond to the request by writing data into the fifo. the fint pin and rq m bit remain true until the fifo becomes full. they are set true again when the fifo has bytes remaining in the fifo. the fint pi n will also be deactivated if tc and ndack both go inactive. the fdc enters the result phas e after the last byte is taken by the fdc from the fifo (i.e. fifo empty condition). dma mode transfers fifo to host the fdc activates the ddrq pin when the fi fo contains (16 - ) bytes, or the last byte of a full sector transfer has been placed in the fifo. the dma controlle r must respond to the reques t by reading data from the fifo. the fdc will deactivate the ddrq pin when the fifo becomes empty. fdrq goes inactive after ndack goes active for the last byte of a dat a transfer (or on the active edge of nior, on the last byte, if no edge is present on ndack). a data underrun may occur if fdrq is not removed in time to prevent an unwanted cycle. host to fifo the fdc activates the fdrq pin when entering the ex ecution phase of the data tr ansfer commands. the dma controller must respond by activating the ndack and niow pi ns and placing data in the fifo. fdrq remains active until the fifo becomes full. fdrq is again set true when the fifo has bytes remaining in the fifo. the fdc will also deactivate the fdrq pin when tc becomes true (qualified by ndack), indicating that no more data is required. fdrq goes inactive after ndack goes acti ve for the last byte of a data transfer (or on the active edge of niow of the last byte, if no edge is present on ndack). a data overrun ma y occur if fdrq is not removed in time to prevent an unwanted cycle. data transfer termination the fdc supports terminal count explic itly through the tc pin and implicitly through the underrun/ overrun and end-of- track (eot) functions. for full sector transfers, the eot par ameter can define the last se ctor to be transferred in a single or multi-sector transfer. if the la st sector to be transferred is a partial sector, the host can stop transferring the data in mid-sector, and the fdc will cont inue to complete the sector as if a hardware tc was received. the only difference between these implicit functions and tc is that they return ? abnormal termination? result status. such status indications can be ignored if they were expected. note that when the host is sending data to the fifo of the fdc, the internal sector count will be complete when the fdc reads the last byte from its side of the fifo. there may be a delay in the removal of the transfer request signal of up to the time taken for the fdc to read the last 16 by tes from the fifo. the host must tolerate this delay. result phase the generation of fint determines the beginning of the result phase. for eac h of the commands, a defined set of result bytes has to be read from the f dc before the result phase is complete. these bytes of data must be read out for another command to start. rqm and dio must both equal ?1? before the result bytes may be read. after a ll the result bytes have been read, the rqm and dio bits switch to ?1? and ?0? respectively, and the cb bit is cleared, indicating that the fdc is ready to accept the next command.
smsc ds ? FDC37N3869 page 35 rev. 10/25/2000 command set/descriptions commands can be written whenever the fdc is in t he command phase. each command has a unique set of needed parameters and status results. the fdc checks to see that the first byte is a valid command and, if valid, proceeds with the command. if it is invalid, an interrupt is issued. the user sends a sense in terrupt status command which returns an invalid command error. refer to table 32 for explanations of the vari ous symbols used. table 33 lists the required parameters and the re sults associated with each command that the fdc is capable of performing. table 32 - description of command symbols symbol name description c cylinder address the currently selected address; 0 to 255. d data pattern the pattern to be written in each sector data field during formatting. d0, d1, d2, d3 drive select 0-3 designates which drives are perpendicular drives on the perpendicular mode command. a ?1? indicates a perpendicular drive. dir direction control if this bit is ?0?, then the head will step out fr om the spindle during a relative seek. if set to a ?1?, the head will step in toward the spindle. ds0, ds1 disk drive select ds1 ds0 drive 0 0 drive 0 0 1 drive 1 1 0 drive 2 1 1 drive 3 dtl special sector size by setting n to zero (00), dtl may be used to control the number of bytes transferred in disk read/write commands. the sector size (n = 0) is set to 128. if the actual sector (on the diske tte) is larger than dtl, the remainder of the actual sector is read but is not passed to the host during read commands; during write commands, the re mainder of the actual sector is written with all zero bytes. the crc check code is calculated with the actual sector. when n is not zero, dtl has no meaning and should be set to ff hex. ec enable count when this bit is ?1? the ?dtl ? parameter of the verify command becomes sc (number of sectors per track). efifo enable fifo this active low bit when a 0, enables the fifo. a ?1? disables the fifo (default). eis enable implied seek when set, a seek operation will be perfo rmed before executing any read or write command that requires the c pa rameter in the command phase. a ?0? disables the implied seek. eot end of track the final sector number of the current track. gap alters gap 2 length when using perpendicular mode. gpl gap length the gap 3 size. (gap 3 is t he space between sectors excluding the vco synchronization field). h/hds head address selected head: 0 or 1 (disk side 0 or 1) as encoded in the sector id field. hlt head load time the time interval that fdc waits after loading the head and before initializing a read or writ e operation. refer to the specify command for actual delays. hut head unload time the time interval from the end of t he execution phase (of a read or write command) until the head is unloaded. refer to the specify command for actual delays. lock lock defines whether efifo, fifothr, and pretrk parameters of the configure command can be reset to their default values by a ?software reset? (a reset caused by writ ing to the appropriate bits of either the dsr or dor). mfm mfm/fm mode selector a one selects the double density (mfm) mode. a zero selects single density (fm) mode.
smsc ds ? FDC37N3869 page 36 rev. 10/25/2000 symbol name description mt multi-track selector when set, this flag selects the multi-tr ack operating mode. in this mode, the fdc treats a complete cylinder under head 0 and 1 as a single track. the fdc operates as this expanded track started at the first sector under head 0 and ended at the last sector under head 1. with this flag set, a multitrack read or write operation will automatically continue to the first sector under head 1 when the fdc fini shes operating on t he last sector under head 0. n sector size code this specifie s the number of bytes in a sector . if this parameter is ?00?, then the sector size is 128 bytes. the number of bytes transferred is determined by the dtl parameter. otherwise the sector size is (2 raised to the ?n?th? power) times 128. all values up to ?07? hex are allowable. ?07?h would equal a sector size of 16k. it is the user?s responsibility to not select combinations that are not possible with the drive. n sector size 00 128bytes 01 256bytes 02 512bytes ... ... 07 16kbytes ncn new cylinder number the desired cylinder number. nd non-dma mode flag when set to ?1?, indicates that t he fdc is to operate in the non-dma mode. in this mode, the host is inte rrupted for each data transfer. when set to 0, the fdc operates in dma mode, interfacing to a dma controller by means of the drq and ndack signals. ow overwrite the bits d0-d3 of the pe rpendicular mode command can only be modified if ow is set to ?1?. ow id defined in the lock command. pcn present cylinder number the current position of the head at the completion of sense interrupt status command. poll polling disable when set, the internal polling routine is disabled. when clear, polling is enabled. pretrk precompensation start track number programmable from track 00 to ffh. r sector address the sector number to be read or written. in multi-sector transfers, this parameter specifies the se ctor number of the firs t sector to be read or written. rcn relative cylinder number relative cylinder offset from present cy linder as used by the relative seek command. sc number of sectors per track the number of sectors per track to be initialized by the format command. the number of sectors per track to be verified during a verify command when ec is set. sk skip flag when set to ?1?, sectors c ontaining a deleted data address mark will automatically be skipped during the ex ecution of read data. if read deleted is executed, only sectors with a deleted address mark will be accessed. when set to ?0?, the sector is read or written the same as the read and write commands. srt step rate interval the time interval betwe en step pulses issued by the fdc. programmable from 0.5 to 8 milliseconds in increments of 0.5 ms at the 1 mbit data rate. refer to the specify command for actual delays. st0 st1 st2 st3 status 0 status 1 status 2 status 3 registers within the fdc which stor e status information after a command has been executed. this status info rmation is available to the host during the result phase after command execution. wgate write gate alters timing of we to a llow for pre-erase loads in perpendicular drives.
smsc ds ? FDC37N3869 page 37 rev. 10/25/2000 instruction set table 33 - instruction set read data data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 0 1 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w c sector id information prior to command execution. w h w r w n w eot w gpl w dtl execution data transfer between the fdd and system. result r st0 status information after command execution. r st1 r st2 r c sector id information after command execution. r h r r r n read deleted data data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 1 1 0 0 command codes w 0 0 0 0 0 hds ds1 ds0 w c sector id information prior to command execution. w h w r w n w eot w gpl w dtl execution data transfer between the fdd and system. result r st0 status information after command execution. r st1 r st2 r c sector id informa tion after command execution. r h r r r n
smsc ds ? FDC37N3869 page 38 rev. 10/25/2000 write data data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 0 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w c sector id information prior to command execution. w h w r w n w eot w gpl w dtl execution data transfer between the fdd and system. result r st0 status information after command execution. r st1 r st2 r c sector id informa tion after command execution. r h r r r n write deleted data data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 1 0 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w c sector id information prior to command execution. w h w r w n w eot w gpl w dtl execution data transfer between the fdd and system. result r st0 status information after com- mand execution. r st1 r st2 r c sector id information after command execution. r h r r r n
smsc ds ? FDC37N3869 page 39 rev. 10/25/2000 read a track data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 0 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w c sector id informati on prior to command execution. w h w r w n w eot w gpl w dtl execution data transfer between the fdd and system. fdc reads all of cylinders? contents from index hole to eot. result r st0 status information after command execution. r st1 r st2 r c sector id informa tion after command execution. r h r r r n verify data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 1 0 1 1 0 command codes w ec 0 0 0 0 hds ds1 ds0 w c sector id information prior to command execution. w h w r w n w eot w gpl w dtl/sc execution no data transfer takes place. result r st0 status information after command execution. r st1 r st2 r c sector id information after command execution. r h r r r n
smsc ds ? FDC37N3869 page 40 rev. 10/25/2000 version data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 0 0 command code result r 1 0 0 1 0 0 0 0 enhanced controller format a track data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w n bytes/sector w sc sectors/cylinder w gpl gap 3 w d filler byte execution for each sector repeat: w c input sector parameters w h w r w n fdc formats an entire cylinder result r st0 status information after command execution r st1 r st2 r undefined r undefined r undefined r undefined recalibrate data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 1 1 command codes w 0 0 0 0 0 0 ds1 ds0 execution head retracted to track 0 interrupt.
smsc ds ? FDC37N3869 page 41 rev. 10/25/2000 sense interrupt status data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 0 0 0 command codes result r st0 status information at the end of each seek operation. r pcn specify data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 0 1 1 command codes w srt hut w hlt nd sense drive status data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 0 0 command codes w 0 0 0 0 0 hds ds1 ds0 result r st3 status information about fdd seek data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 1 command codes w 0 0 0 0 0 hds ds1 ds0 w ncn execution head positioned over proper cylinder on diskette. configure data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 1 configure information w 0 0 0 0 0 0 0 0 w 0 eis efifo poll fifothr execution w pretrk
smsc ds ? FDC37N3869 page 42 rev. 10/25/2000 relative seek data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 1 dir 0 0 1 1 1 1 w 0 0 0 0 0 hds ds1 ds0 w rcn dumpreg data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 0 *note: registers placed in fifo execution result r pcn-drive 0 r pcn-drive 1 r pcn-drive 2 r pcn-drive 3 r srt hut r hlt nd r sc/eot r lock 0 d3 d2 d1 d0 gap wgate r 0 eis efifo poll fifothr r pretrk read id data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 0 1 0 commands w 0 0 0 0 0 hds ds1 ds0 execution the first correct id information on the cylinder is stored in data register result r st0 status information after command execution. disk status after the command has completed r st1 r st2 r c r h r r r n perpendicular mode data bus
smsc ds ? FDC37N3869 page 43 rev. 10/25/2000 phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 0 command codes ow 0 d3 d2 d1 d0 gap wgate invalid codes data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w invalid codes invalid command codes (noop - FDC37N3869 goes into standby state) result r st0 st0 = 80h lock data bus phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w lock 0 0 1 0 1 0 0 command codes result r 0 0 0 lock 0 0 0 0 sc is returned if the last command t hat was issued was the format command. eot is returned if the last command was a read or write. note: these bits are used internally only. they are not re flected in the drive select pins. it is the user?s responsibility to maintain correspondence between t hese bits and the drive select pins (dor). data transfer commands all of the read data, write data and verify type commands use the same parameter bytes and return the same results information, the only difference being t he coding of bits 0-4 in the first byte. an implied seek will be executed if t he feature was enabled by the configure command. this seek is completely transparent to the user. the drive busy bit for the drive will go active in the main status regist er during the seek portion of the command. if the seek por tion fails, it will be reflected in the results status normally returned for a read/write data command. st atus register 0 (st0) woul d contain the error code and c would contain the cylinder on which the seek failed. read data a set of nine bytes is required to place the fdc in the read data mode. after the read data command has been issued, the fdc loads the head (if it is in the unloaded state), wait s the specified head settli ng time (defined in the specify command), and begins reading id address marks and id fields. when the sector address read off the diskette matches with the sector address specified in the command, the fdc reads the sector?s data field and transfers the data to the fifo. after completion of the read operation fr om the current sector, the sector address is increment ed by one and the data from the next logical sector is read and output via the fifo. this continuous read function is called ?multi-sector read operation?. upon receipt of tc, or an implied tc (fifo overrun/underrun), the f dc stops sending data but will continue to read data from t he current sector, check the crc bytes, and at the end of the sect or, terminate the read data command. n determines the number of bytes per sector (see table 34 below). if n is set to zero, the sector size is set to 128. the dtl value determines the number of bytes to be transferred. if dtl is less than 128, the fdc transfers the specified number of byte s to the host. for reads, it continues to read the entire 128-byte sector and checks for crc errors. for writes, it comp letes the 128-byte sector by filling in ze ros. if n is not set to 00 hex, dtl should be set to ff hex and has no impact on the number of bytes transferred.
smsc ds ? FDC37N3869 page 44 rev. 10/25/2000 table 34 - sector sizes n sector size 00 01 02 03 .. 07 128 bytes 256 bytes 512 bytes 1024 bytes ... 16 kbytes the amount of data which can be handled with a single command to the fdc depends upon mt (multi-track) and n (number of bytes/sector). the multi-track function (mt) allows the fdc to read data fr om both sides of the diskette. for a particular cylinder, data will be transferred starting at sector 1, side 0 and completing the last sect or of the same track at side 1. if the host terminates a read or write operation in the fdc, the id informa tion in the result phase is dependent upon the state of the mt bit and eot byte. refer to table 38. at the completion of the read data command, the head is not unloaded until after the head unload time interval (specified in the specify command) has elapsed. if the host issues anot her command before the head unloads, then the head settling time may be saved between subsequent reads. if the fdc detects a pulse on the nindex pin twice without finding the specifi ed sector (meaning that the diskette?s index hole passes through index detect logic in the drive twice), the fdc sets the ic code in status register 0 to ?01? indicating abnormal termination, sets the nd bit in status register 1 to ?1? indica ting a sector not found, and terminates the read data command. after reading the id and data fields in each sector, the fdc checks the crc bytes. if a crc error occurs in the id or data field, the fdc sets the ic code in status register 0 to ?01? indi cating abnormal termination, sets the de bit flag in status register 1 to ?1?, sets the dd bit in status register 2 to ?1? if crc is incorrect in the id field, and terminates the read data command. table 36 describes the effect of the sk bit on the read data command execution and results. except where noted in table 36, the c or r va lue of the sector address is automatically incremented (see table 38). table 35 - affects of mt and n bits mt n maximum transfer capacity final sector read from disk 0 1 0 1 0 1 1 1 2 2 3 3 256 x 26 = 6,656 256 x 52 = 13,312 512 x 15 = 7,680 512 x 30 = 15,360 1024 x 8 = 8,192 1024 x 16 = 16,384 26 at side 0 or 1 26 at side 1 15 at side 0 or 1 15 at side 1 8 at side 0 or 1 16 at side 1 table 36 - skip bit vs. read data command sk bit value data address mark type encountered results sector read? cm bit of st2 set? description of results 0 0 1 1 normal data deleted data normal data deleted data yes yes yes no no yes no yes normal termination address not incremented next sector not searched for normal termination normal termination. sector not read (?skipped?)
smsc ds ? FDC37N3869 page 45 rev. 10/25/2000 read deleted data this command is the same as the read data command, onl y it operates on sectors that contain a deleted data address mark at the beginning of a data field. table 37 describes the effect of the sk bit on t he read deleted data command execution and results. except where noted in table 37 the c or r value of the sector address is aut omatically incremented (see table 38). table 37 - skip bit vs. r ead deleted data command data address mark type encountered results sk bit value sector read? cm bit of st2 set? description of results 0 0 1 1 normal data deleted data normal data deleted data yes yes no yes yes no yes no address not incremented. next sector not searched for. normal termination. normal termination. sector not read (?skipped?). normal termination. read a track this command is similar to the read data command except that the entire data field is read continuously from each of the sectors of a track. immediately after encountering a pul se on the nindex pin, the fdc starts to read all data fields on the track as continuous blocks of data without regard to logica l sector numbers. if the fdc finds an error in the id or data crc check bytes, it continues to read data from the track and se ts the appropriate error bits at the end of the command. t he fdc compares the id information read from eac h sector with the specified value in the command and sets the nd flag of status register 1 to a ?1? if there is no comparison. multi-track or skip operations are not allowed with this command. the mt and sk bits (bits d7 and d5 of the first command byte respectively) should always be set to ?0?. this command terminates when the eot s pecified number of sector s has not been read. if the fdc does not find an id address mark on the diskette after the second occurrence of a pulse on the idx pin, t hen it sets the ic code in status register 0 to ?01? (abnormal te rmination), sets the ma bit in status register 1 to ?1?, and terminates the command.
smsc ds ? FDC37N3869 page 46 rev. 10/25/2000 table 38 - result phase table mt head final sector transferred to host id information at result phase c h r n 0 0 less than eot nc nc r + 1 nc equal to eot c + 1 nc 01 nc 1 less than eot nc nc r + 1 nc equal to eot c + 1 nc 01 nc 1 0 less than eot nc nc r + 1 nc equal to eot nc lsb 01 nc 1 less than eot nc nc r + 1 nc equal to eot c + 1 lsb 01 nc nc: no change, the same value as the one at the beginning of command execution. lsb: least significant bit, t he lsb of h is complemented. write data after the write data command has been i ssued, the fdc loads the head (if it is in the unloaded state), waits the specified head load time if unloaded (def ined in the specify command), and begi ns reading id fields. when the sector address read from the diskette ma tches the sector address specified in the command, the fdc reads the data from the host via the fifo and writes it to the sector?s data field. after writing data into the current sect or, the fdc computes the crc value and writes it into the crc field at the end of the sector transfer. the sector number stored in ?r? is incremented by one, and the fdc conti nues writing to the next data field. the fdc continues this ?multi-sector write operati on?. upon receipt of a terminal count signal or if a fifo over/under run occurs while a data fi eld is being written, then the remainder of the data field is filled with zeros. the fdc reads the id field of each sect or and checks the crc bytes. if it detects a crc error in one of the id fields, it sets the ic code in status register 0 to ?01? (abnormal termination), sets the de bit of status register 1 to ?1?, and terminates the write data command. the write data command operates in much the same manner as the read data command. the following items are the same. please refer to t he read data command for details: transfer capacity en (end of cylinder) bit nd (no data) bit head load, unload time interval id information when the host terminates the command definition of dtl when n = 0 and when n does not = 0
smsc ds ? FDC37N3869 page 47 rev. 10/25/2000 write deleted data this command is almost the same as t he write data command except that a dele ted data address mark is written at the beginning of the data field instead of the normal data address mark. this command is typically used to mark a bad sector containing an error on the floppy disk. verify the verify command is used to verify the data stored on a disk. this command acts exactly like a read data command except that no data is transferred to the host. data is read from the disk and crc is computed and checked against the previously-stored value. because data is not transferred to the host, tc (pin 25) cannot be used to te rminate this command. by setting the ec bit to ?1?, an implicit tc will be i ssued to the fdc. this implicit tc will occur when the sc value has decremented to 0 (an sc value of 0 will verify 256 sector s). this command can also be terminated by setting the ec bit to ?0? and the eot value equal to the final sector to be checked. if ec is set to ?0?, dtl/sc should be programmed to 0ffh. refer to table 38 and table 39 for information concerning the values of mt and ec versus sc and eot value. definitions: # sectors per side = number of formatt ed sectors per each side of the disk. # sectors remaining = number of formatted sectors left which can be read, including side 1 of the disk if mt is set to ?1?. table 39 - verify command result phase table mt ec sc/eot value termination result 0 0 sc = dtl eot # sectors per side success termination result phase valid 0 0 sc = dtl eot > # sectors per side unsuccessful termination result phase invalid 0 1 sc # sectors remaining and eot # sectors per side successful termination result phase valid 0 1 sc > # sectors remaining or eot > # sectors per side unsuccessful termination result phase invalid 1 0 sc = dtl eot # sectors per side successful termination result phase valid 1 0 sc = dtl eot > # sectors per side unsuccessful termination result phase invalid 1 1 sc # sectors remaining and eot # sectors per side successful termination result phase valid 1 1 sc > # sectors remaining or eot > # sectors per side unsuccessful termination result phase invalid note: if mt is set to ?1? and the sc value is greater than the number of remaining formatted sectors on side 0, verifying will continue on side 1 of the disk.
smsc ds ? FDC37N3869 page 48 rev. 10/25/2000 format a track the format command allows an entire track to be formatted. after a pulse from the idx pin is detected, the fdc starts writing data on the disk including gaps, address marks, id fields, and data fields per the ibm system 34 or 3740 format (mfm or fm respectively). the particular values t hat will be written to the gap and data field are controlled by the values programmed into n, sc, gpl, and d which ar e specified by the host dur ing the command phase. the data field of the sector is filled with t he data byte specified by d. the id fiel d for each sector is supplied by the host; that is, four data bytes per sector are needed by the fdc for c, h, r, and n (cylinder, head, sector number and sector size respectively). after formatting each sector, the host must send new values for c, h, r and n to the f dc for the next sector on the track. the r value (sector number) is the only value that must be changed by the host afte r each sector is formatted. this allows the disk to be formatted with nonsequential se ctor addresses (interleavi ng). this incrementing and formatting continues for the whole track until the fdc enc ounters a pulse on the idx pi n again and it terminates the command. table 41 contains typical values for gap fiel ds which are dependent upon the si ze of the sector and the number of sectors on each track. actual values can vary due to drive electronics. table 40 - format fields system 34 (double density) format gap4 a 80x 4e syn c 12x 00 iam gap 1 50x 4e syn c 12x 00 idam c y l h d s e c n o c r c gap 2 22x 4e syn c 12x 00 data am dat a c r c gap 3 gap 4b 3x c2 fc 3x a 1 fe 3x a1 fb f8 system 3740 (single density) format gap4 a 40x ff syn c 6x 00 iam gap 1 26x ff syn c 6x 00 idam c y l h d s e c n o c r c gap 2 11x ff syn c 6x 00 data am dat a c r c gap 3 gap 4b fc fe fb or f8 perpendicular format gap4 a 80x 4e syn c 12x 00 iam gap 1 50x 4e syn c 12x 00 idam c y l h d s e c n o c r c gap 2 41x 4e syn c 12x 00 data am dat a c r c gap 3 gap 4b 3x c2 fc 3x a 1 fe 3x a1 fb f8
smsc ds ? FDC37N3869 page 49 rev. 10/25/2000 table 41 - typical values for formatting format sector size n sc gpl1 gpl2 5.25? drives fm 128 128 512 1024 2048 4096 ... 00 00 02 03 04 05 ... 12 10 08 04 02 01 07 10 18 46 c8 c8 09 19 30 87 ff ff mfm 256 256 512* 1024 2048 4096 ... 01 01 02 03 04 05 ... 12 10 09 04 02 01 0a 20 2a 80 c8 c8 0c 32 50 f0 ff ff 3.5? drives fm 128 256 512 0 1 2 0f 09 05 07 0f 1b 1b 2a 3a mfm 256 512** 1024 1 2 3 0f 09 05 0e 1b 35 36 54 74 gpl1 = suggested gpl values in read and write commands to avoid splice point between data field and id fiel d of contiguous sections. gpl2 = suggested gpl value in format a track command. *pc/at values (typical) **ps/2 values (typical). applies with 1.0 mb and 2.0 mb drives. note: all values except se ctor size are in hex. control commands control commands differ from the other commands in that no data transfer ta kes place. three commands generate an interrupt when complete: read id, recalibrate, and seek. the other contro l commands do not generate an interrupt. read id the read id command is used to find the present position of the re cording heads. the fdc stores the values from the first id field it is able to read in to its registers. if the fdc does not fi nd an id address mark on the diskette after the second occurrence of a pulse on the nindex pin, it then sets the ic code in status register 0 to ?01? (abnormal termination), sets the ma bit in status register 1 to ?1?, and terminates the command. the following commands will generate an interr upt upon completion. they do not return any result bytes. it is highly recommended that control commands be fo llowed by the sense interrupt stat us command. otherwise, valuable interrupt status information will be lost. recalibrate this command causes the read/ write head within the fdc to retract to t he track 0 position. the fdc clears the contents of the pcn c ounter and checks the status of the ntr0 pin from t he fdd. as long as the ntr0 pin is low, the dir pin remains 0 and step pulses are iss ued. when the ntr0 pin goes high, the se bit in status register 0 is set to ?1? and the command is terminated. if the ntr0 pi n is still low after 79 step pulses have been issued, the fdc sets the se and the ec bits of st atus register 0 to ?1? and terminates the command. disks capable of handling more than 80 tracks per side may require more than one re calibrate command to return the head back to physical track 0. the recalibrate command does not have a result phase. the sense interr upt status command must be issued after the recalibrate command to effectively terminate it and to provide verification of the head position (pcn). during the command phase of the recalibra te operation, the fdc is in the bu sy state, but duri ng the execution
smsc ds ? FDC37N3869 page 50 rev. 10/25/2000 phase it is in a non-busy st ate. at this time, another recalibrate command may be issued, and in this manner parallel recalibrate operations may be done on up to four drives at once. upon power up, the software must issue a recalibrate comm and to properly initialize all drives and the controller. seek the read/write head within the drive is moved from track to track under the c ontrol of the seek command. the fdc compares the pcn, which is the curr ent head position, with the ncn and performs the following operation if there is a difference: pcn < ncn: direction signal to drive set to ?1? (step in) and issues step pulses. pcn > ncn: direction signal to drive set to ?0? (step out) and issues step pulses. the rate at which step pulses are iss ued is controlled by srt (stepping rate time) in the specify command. after each step pulse is issued, ncn is com pared against pcn, and when ncn = pcn the se bit in status register 0 is set to ?1? and the command is terminated. during the command phase of the seek or recalibrate operation, the fdc is in the busy state, but during the execution phase it is in the non-busy state. at this time, another s eek or recalibrate command may be issued, and in this manner, parallel seek operations may be done on up to four drives at once. note that if implied seek is not enabled, the read and write commands should be preceded by: 1) seek command - step to the proper track 2) sense interrupt status co mmand - terminate the seek command 3) read id - verify head is on proper track 4) issue read/write command. the seek command does not have a result phase. therefore, it is highly recommended that the sense interrupt status command be issued after the seek command to termi nate it and to provide veri fication of the head position (pcn). the h bit (head address) in st0 will always re turn to a ?0?. when exiti ng powerdown mode, the fdc clears the pcn value and the status information to zero. prior to issuing the powerdo wn command, it is highly recommended that the user service all pending interr upts through the sense inte rrupt status command. sense interrupt status an interrupt signal on fint pin is generated by the fdc for one of the following reasons: 1) upon entering the result phase of: a) read data command b) read a track command c) read id command d) read deleted data command e) write data command f) format a track command g) write deleted data command h) verify command 2) end of seek, relative seek, or recalibrate command 3) fdc requires a data transfer during the execution phase in the non-dma mode the sense interrupt status command resets the interrupt signal and, via the ic code and se bit of status register 0, identifies the cause of the interrupt. table 42 - interrupt identification se ic interrupt due to 0 11 polling 1 00 normal termination of seek or recalibrate command 1 01 abnormal termination of seek or recalibrate command the seek, relative seek, and recalibrate commands have no result phase. the sens e interrupt status command must be issued immediately after these commands to termi nate them and to provide veri fication of the head position
smsc ds ? FDC37N3869 page 51 rev. 10/25/2000 (pcn). the h (head address) bit in st0 will always return a ?0 ?. if a sense interrupt stat us is not issued, the drive will continue to be busy and may affect the operation of the next command. sense drive status sense drive status obtai ns drive status information. it has not exec ution phase and goes directly to the result phase from the command phase. status register 3 contains the drive status information. specify the specify command sets the initial va lues for each of the three internal times. the hut (head unload time) defines the time from the end of t he execution phase of one of the read/write commands to the head unload state. the srt (step rate time) defines the time interval bet ween adjacent step pulses. no te that the spacing between the first and second step pulses may be shorter than the re maining step pulses. the hlt (head load time) defines the time between when the head load signal goes high and the read/write operation starts. the values change with the data rate speed selection and are documented in table 43. the values are the same for mfm and fm. table 43 - drive control delays (ms) hut srt 2m 1m 500k 300k 250k 2m 1m 500k 300k 250k 0 1 .. e f 64 4 .. 56 60 128 8 .. 112 120 256 16 .. 224 240 426 26.7 .. 373 400 512 32 .. 448 480 4 3.75 .. 0.5 0.25 8 7.5 .. 1 0.5 16 15 .. 2 1 26.7 25 .. 3.33 1.67 32 30 .. 4 2 hlt 2m 1m 500k 300k 250k 00 01 02 .. 7f 7f 64 0.5 1 .. 63 63.5 128 1 2 .. 126 127 256 2 4 .. 252 254 426 3.3 6.7 .. 420 423 512 4 8 . 504 508 the choice of dma or non-dma operati ons is made by the nd bit. when this bit is ?1?, the non-dma mode is selected, and when nd is ?0?, the dma mode is selected. in dma mode, dat a transfers are signaled by the fdrq pin. non-dma mode uses the rqm bit and the fint pin to signal data transfers. configure the configure command is issued to se lect the special featur es of the fdc. a c onfigure command need not be issued if the default values of the fdc meet the system requirements. configure default values: eis - no implied seeks efifo - fifo disabled poll - polling enabled fifothr - fifo threshold set to 1 byte pretrk - pre-compensation set to track 0 eis - enable implied seek. when set to ?1?, the fdc w ill perform a seek operation befor e executing a read or write command. defaults to no implied seek. efifo - a ?1? disables the fifo (default). this means data transfers are asked for on a byte-by-byte basis. defaults to ?1?, fifo disabled. the threshold defaults to ?1?. poll - disable polling of the drives. defaults to ?0?, polling enabled. w hen enabled, a single interrupt is generated after a reset. no polling is performed while the dr ive head is loaded and the head unload delay has not expired. fifothr - the fifo threshold in the execution phase of r ead or write commands. this is programmable from 1 to 16 bytes. defaults to one byte. a ?00? selects one byte; ?0f? selects 16 bytes.
smsc ds ? FDC37N3869 page 52 rev. 10/25/2000 pretrk - pre-compensation start track number. programmable from track 0 to 255. defaults to track 0. a ?00? selects track 0; ?ff? selects track 255. version the version command checks to see if t he controller is an enhanced type or the older type (765a). a value of 90 h is returned as the result byte. relative seek the command is coded the same as for seek, except for the msb of the first byte and the dir bit. table 44 - head step direction control dir action 0 step head out 1 step head in rcn - relative cylinder number that determines how many tracks to step the head in or out from the current track number. the relative seek command differs from the seek command in that it steps the head t he absolute number of tracks specified in the command in stead of making a comparison against an inte rnal register. the seek command is good for drives that support a maximum of 256 tracks. relative seeks cannot be overlapped with other relative seeks. only one relative seek can be active at a time. relati ve seeks may be overlapped with seeks and recalibrates. bit 4 of status register 0 (ec) will be se t if relative seek attempts to step outward beyond track 0. as an example, assume that a floppy drive has 300 useable tracks. the host needs to read track 300 and the head is on any track (0- 255). if a seek command is issued, the head will stop at track 255. if a relati ve seek command is issued, the fdc will move the head the specifi ed number of tracks, regardless of the inte rnal cylinder position register (but will increment the register). if the head wa s on track 40 (d), the maximum track that the fdc coul d position the head on using relative seek will be 295 (d), the initial track + 255 (d). the maximum count t hat the head can be moved with a single relative seek command is 255 (d). the internal register, pcn, will over flow as the cylinder number crosses track 255 and will contain 39 (d). the resulting pcn value is thus (rcn + p cn) mod 256. functionally, the fdc starts counting fr om 0 again as the track number goes above 255 (d). it is the us er?s responsibility to compensate f dc functions (precompensation track number) when accessing tracks greater t han 255. the fdc does not keep track that it is working in an ?extended track area? (greater than 255). any command issued will use the current pcn value except for the recalibrate command, which only looks for the track0 signal. recalibra te will return an error if the head is farther than 79 due to its limitation of issuing a maximu m of 80 step pulses. the user simply needs to issue a second recalibrate command. the seek command and implied seeks will function correctly within the 44 (d) track (299-255) area of the ?extended track area?. it is the user?s responsibility not to issue a new track position that will exceed the maximum track that is present in t he extended area. to return to the standard floppy range (0-255) of tracks, a relative seek should be issued to cross the track 255 boundary. a relative seek can be used instead of the normal seek, but the host is required to calculate the diffe rence between the current head location and the new (target) head location. this may require the host to issue a read id command to ensur e that the head is physically on the track that software assumes it to be. different fdc commands will return different cylinder results which may be difficult to keep track of with software without the read id command. perpendicular mode the perpendicular mode command should be issued prior to executing read/write/forma t commands that access a disk drive with perpendicular recording capability. with this command, the length of the gap2 field and vco enable timing can be altered to accommodate the unique requirements of these drives. table 45 describes the affects of the wgate and gap bits for the perpendicular mode command. upon a reset, the fdc will default to the conventional mode (wgate = 0, gap = 0). selection of the 500 kbps and 1 mbps perpendicular modes is independent of the actual data rate selected in the data rate select register. the user must ens ure that these two data ra tes remain consistent. the gap2 and vco timing requirements for perpendicular record ing type drives are dictat ed by the design of the read/write head. in the desi gn of this head, a pre-eras e head precedes the normal read/ write head by a distance of 200 micrometers. this works out to about 38 bytes at a 1 mbps recordi ng density. whenever the write head is enabled by the write gate signal, the pre- erase head is also activated at the sa me time. thus, when the write head is initially turned on, flux transitions recorded on the media for the first 38 by tes will not be preconditioned with the pre-
smsc ds ? FDC37N3869 page 53 rev. 10/25/2000 erase head since it has not yet been ac tivated. to accommodate this head activation and deactivation time, the gap2 field is expanded to a length of 41 bytes. the fo rmat field shown on page 61 illustrates the change in the gap2 field size for the perpendicular format. on the read back by the fdc, the cont roller must begin synchronization at the beginning of the sync field. for the conventional mode, the inte rnal pll vco is enabled (vcoen) approximatel y 24 bytes from the start of the gap2 field. but, when the controller operat es in the 1 mbps perpendicular mode (wgate = 1, gap = 1), vcoen goes active after 43 bytes to accommodate the increased gap2 field size. for both cases, and approximate two-byte cushion is maintained from the beginning of the sync field fo r the purposes of avoiding writ e splices in the presence of motor speed variation. for the write data case, the fdc activates write gate at the beginning of the sync field under the conventional mode. the controller then writes a new sync field, data address mark, data fiel d, and crc as shown in figure 4. with the pre-erase head of t he perpendicular drive, the write head must be activated in the g ap2 field to insure a proper write of the new sync field. for t he 1 mbps perpendicular mode (wgate = 1, g ap = 1), 38 bytes will be written in the gap2 space. since the bit dens ity is proportional to the data rate, 19 bytes will be written in the gap2 field for the 500 kbps perpendicular mode (wgate = 1, gap =0). it should be noted that none of the alterati ons in gap2 size, vco timing, or writ e gate timing affect normal program flow. the information provided here is just for backg round purposes and is not needed fo r normal operation. once the perpendicular mode command is invoked, fdc so ftware behavior from the us er standpoint is unchanged. the perpendicular mode command is enhanced to allow specif ic drives to be designated perpendicular recording drives. this enhancement allows data transfers between conventional and per pendicular drives without having to issue perpendicular mode commands betw een the accesses of the different dr ive types, nor having to change write pre-compensation values. when both gap and wgate bits of the perpendicul ar mode command are both programmed to ?0? (conventional mode), then d0, d1, d2, d3, and d4 can be pr ogrammed independently to ?1? for that drive to be set automatically to perpendicular mode. in this mode the following set of conditions also apply: 1) the gap2 written to a perpendicular drive during a write operation will depend upon t he programmed data rate. 2) the write pre-compensation given to a perpendicular mode drive will be 0ns. 3) for d0-d3 programmed to ?0? for conventional mode driv es any data written will be at the currently programmed write pre-compensation. note: bits d0-d3 can only be overwritten when ow is programmed as a ?1?. if either gap or wgate is a ?1? then d0-d3 are ignored. software and hardware resets have the following effect on the perpendicular mode command: 1) ?software? resets (via the dor or dsr registers) will only clear gap and wgate bits to ?0?. d0-d3 are unaffected and retain their previous value. 2) ?hardware? resets will clear all bits (gap, wg ate and d0-d3) to ?0?, i. e. all conventional mode. table 45 - affects of wgate and gap bits wgate gap mode length of gap2 format field portion of gap 2 written by write data operation 0 0 1 1 0 1 0 1 conventional perpendicular (500 kbps) reserved (conventional) perpendicular (1 mbps) 22 bytes 22 bytes 22 bytes 41 bytes 0 bytes 19 bytes 0 bytes 38 bytes lock in order to protect systems with long dma latencies agains t older application software that can disable the fifo the lock command has been added. this command should only be used by the fdc routines, and application software should refrain from using it. if an application calls for the fifo to be disabl ed then the configure command should be used.
smsc ds ? FDC37N3869 page 54 rev. 10/25/2000 the lock command defines whether the efifo, fifo thr, and pretrk paramet ers of the configure command can be reset by the dor and ds r registers. when the lock bit is set to logic ?1? all subsequent ?software resets by the dor and dsr registers will not change t he previously set parameters to their default values. all ?hardware? reset from the reset pin will set the lock bit to logic ?0? and return the efifo, fifothr, and pretrk to their default values. a status byte is returned immediately after issuing a lock command. this byte reflects the value of the lock bit set by the command byte. enhanced dumpreg the dumpreg command is designed to support system r un-time diagnostics and application software development and debug. to accommodate the lock command and the enhanced perpe ndicular mode command the eighth byte of the dumpreg command has been modified to contain the additional data from these two commands. compatibility the FDC37N3869 was designed with software compatibility in mind. it is a fully backwards-compatible solution with the older generation 765a/b disk contro llers. the fdc also implements on-board registers for compatibility with the ps/2, as well as pc/at and pc/xt, floppy disk controller subsystems. after a hardware reset of the fdc, all registers, functions and enhanc ements default to a pc/at, ps/2 or ps/ 2 model 30 compatib le operating mode, depending on how the ident and mfm bits ar e configured by the system bios. parallel port floppy disk controller in this mode, the floppy disk control signals are available on the parallel port pins. when this mode is selected, the parallel port is not available. t here are two modes of operation, ppfd1 and ppfd2. these modes can be selected in configuration register 4. ppf d1 has only drive 1 on the parallel por t pins; ppfd2 has drive 0 and 1 on the parallel port pins. ppfd1: drive 0 is on the fdc pins drive 1 is on the parallel port pins ppfd2: drive 0 is on the parallel port pins drive 1 is on the parallel port pins when the ppfdc is selected the following pins are set as follows: 1) ndack: assigned to the parallel port device during configuration. 2) pdrq (assigned to the parallel port): not ecp = hi gh-z, ecp & dmaen = 0, ecp & not dmaen = high-z 3) irq assigned to the parallel port: not active, this is hi-z or low depending on settings. the following parallel port pins are read as follo ws by a read of the parallel port register: 1) data register (read) = la st data register (write) 2) control register are read as ?cable not connected? strobe, au tofd and slc = 0 and ninit = 1; 3) status register reads: nbusy = 0, pe = 0, slct = 0, nack = 1, nerr = 1. the following fdc pins are all in the high impedance state when the ppfdc is act ually selected by the drive select register: 1) nwdata, densel, nhdsel, nwgate, nd ir, nstep, nds1, nds0, nmtro, nmtr1. 2) if ppfdx is selected, then the para llel port can not be used as a parallel port until ?normal? mode is selected. the fdc signals are muxed onto the parallel port pins as shown in table 46. table 46 - fdc parallel port pins connector pin # chip pin # spp mode pin direction fdc mode pin direction 1 75 nstb i/o (nds0) i/(0) 1 2 69 pd0 i/o nindex i 3 68 pd1 i/o ntrk0 i 4 67 pd2 i/o nwp i 5 66 pd3 i/o nrdata i 6 64 pd4 i/o ndskchg i 7 63 pd5 i/o
smsc ds ? FDC37N3869 page 55 rev. 10/25/2000 connector pin # chip pin # spp mode pin direction fdc mode pin direction 8 62 pd6 i/o (nmtr0) i/(0) 1 9 61 pd7 i/o 10 60 nack i nds1 0 11 59 busy i nmtr1 0 12 58 pe i nwdata 0 13 57 slct i nwgate 0 14 74 nafd i/o ndensel 0 15 73 nerr i nhdsel 0 16 72 ninit i/o ndir 0 17 71 nslin i/o nstep 0 note 1 : these pins are outputs in mode ppfd2. inputs in mode ppfd1 for acpi compliance the fdd pins t hat are multiplexed onto the parallel port must functi on independently of the state of the parallel port c ontroller. for example, if the fdc is enabled onto the paralle l port the multiplexed fdd interface should function normally regardl ess of the parallel port power cont rol cr01.2. table 47 illustrates this functionality. table 47 - parallel port fdd control parallel port power parallel port fdc control parallel port fdc state parallel port state cr01.2 cr04.3 cr04.2 1 0 0 off on 0 0 0 off off x 1 x on off 1 x 1 note 1 : the parallel port control register reads as ?c able not connected? when the pp fdc is enabled; i.e., strobe = autofd = slc = 0 and ninit = 1
smsc ds ? FDC37N3869 page 56 rev. 10/25/2000 serial port (uart) the FDC37N3869 incorporates two full function uarts. they are compatible wi th the ns16450, the 16450 ace registers and the ns16550a. the uarts perform serial-to- parallel conversion on receiv ed characters and parallel- to-serial conversion on transmit characters. the dat a rates are independently progra mmable from 115.2k baud down to 50 baud. the character options are progr ammable for 1 start; 1, 1.5 or 2 stop bits; even, odd, sticky or no parity; and prioritized interrupts. the uart s each contain a programmable baud rate generator that is capable of dividing the input clock or crystal by a number from 1 to 65535. the uarts are al so capable of suppor ting the midi data rate. refer to the FDC37N3869 configuration registers for information on disabling, powering down and changing the base address of the uarts. the interr upt from a uart is enabled by programmi ng out2 of that uart to a logic ?1?. when out2 is a logic ?0? the uart interrupt is disabled. register description addressing of the accessible registers of the serial port is shown below ( table 48). the base addresses of the serial ports ar e defined by the configurat ion registers (see section configuration on page 96). the serial port register s are located at sequentially increasing addresses above these base addresses. the FDC37N3869 cont ains two serial ports, each of which contain a register set as described below. table 48 - addressing the serial port dlab 1 a2 a1 a0 register name 0 0 0 0 receive buffer (read) 0 0 0 0 transmit buffer (write) 0 0 0 1 interrupt enable (read/write) x 0 1 0 interrupt identification (read) x 0 1 0 fifo control (write) x 0 1 1 line control (read/write) x 1 0 0 modem control (read/write) x 1 0 1 line status (read/write) x 1 1 0 modem stat us (read/write) x 1 1 1 scratchpad (read/write) 1 0 0 0 divisor lsb (read/write) 1 0 0 1 divisor msb (read/write) note 1 : dlab is bit 7 of the line control register receive buffer register (rb) the receive buffer register (address offset = 0h, dlab = 0, read only) holds the received incoming data byte. bit 0 is the least significant bit, which is transmitted and re ceived first. received data is double buffered; this uses an additional shift register to receive the se rial data stream and convert it to a para llel 8 bit character which is transferred to the receive buffer register. the shift register is not accessible. transmit buffer register (tb) the transmit buffer register (address offset = 0h, dl ab = 0, write only) contains the data byte to be transmitted. the transmit buffer is double buffered, utilizing an additional shift regist er (not accessible) to convert the 8 bit data character to a serial format. this shift regist er is loaded from the transmit buffer when the transmission of the previous byte is complete. interrupt enable register (ier) the lower four bits of the interrupt enable register (address offset = 1h , dlab = 0, read/write) control the enables of the five interrupt sources of t he serial port interrupt. it is possible to totally disable the interrupt system by resetting bits 0 through 3 of this register. similarly, by se tting the appropriate bits of this register to a high selected interrupts can be enabled. disabling the inte rrupt system inhibits the interrupt i dentification register and disables any serial port interrupt out of the fdc 37n3869. all other system functions operate in their normal manner, including the line status and modem status registers. the contents of the interr upt enable register are described below. erdai, bit 0 the erdai bit enables the received data available interrupt (and time-out interrupts in the fifo mode) when set to logic ?1?.
smsc ds ? FDC37N3869 page 57 rev. 10/25/2000 ethrei, bit 1 the ethrei bit enables the transmitter holding regi ster empty interrupt when set to logic ?1?. elsi, bit 2 the elsi bit enables the received line stat us interrupt when set to logic ?1?. the error sources causing the interrupt are overrun, parity, framing and break. the line stat us register must be read to determine the source. emsi, bit 3 the emsi bit enables the modem status interrupt when set to logic ?1?. an msi is caused when one of the modem status register bits changes state. reserved, bits 4 - 7 bits 4 to 7 are reserved . reserved bits cannot be written and return 0 when read. interrupt identification register (iir) by accessing the interrupt identificat ion register (address offset = 2h, dlab = x, read), the host cpu can determine the highest priority interrupt and it s source. four levels of interrupt priority exist. they are in descending order of priority: 1) receiver line status (highest priority) 2) received data ready 3) transmitter holding register empty 4) modem status (lowest priority) information indicating that a prioritized interrupt is pending and the source of that interrupt is stored in the interrupt identification register (refer to the interrupt control table, table 49). when the cpu accesses the iir, the serial port freezes all interrupts and indicates the highest priority pending interrupt to the cpu. during this cpu access, even if the serial port records new interrupts, the current indication does not change until access is completed. interrupt pending, bit 0 the interrupt pending bit can be used in either a hardwired prioritized or poll ed environment to indicate whether an interrupt is pending. when bit 0 is a logic ?0?, an inte rrupt is pending and the contents of the iir may be used as a pointer to the appropriate internal service routine. when bit 0 is a logic ?1?, no interrupt is pending. interrupt id, bits 1 - 2 the interrupt id bits of the iir are us ed to identify the highest priority interr upt pending as indicated by the interrupt control table (table 49). time-out, bit 3 in non-fifo mode, the time-out bit is a logic ?0?. in fi fo mode the time-out bit is set along with bit 2 when a time- out interrupt is pending. reserved, bits 4 - 5 bits 4 to 5 are reserved . reserved bits cannot be written and return 0 when read. fifos enabled, bits 6 - 7 the fifos enabled bits are set when the fifo control register bit 0 equals 1.
smsc ds ? FDC37N3869 page 58 rev. 10/25/2000 table 49 - interrupt control fifo mode only interrupt identification register interrupt set and reset functions bit 3 bit 2 bit 1 bit 0 priority level interrupt type interrupt source interrupt reset control 0 0 0 1 - none none - 0 1 1 0 highest receiver line status overrun error, parity error, framing error or break interrupt reading the line status register 0 1 0 0 second received data available receiver data available read receiver buffer or the fifo drops below the trigger level. 1 1 0 0 second character time-out indication no characters have been removed from or input to the rcvr fifo during the last 4 character times and there is at least 1 character in it during this time reading the receiver buffer register 0 0 1 0 third transmitter holding register empty transmitter holding register empty reading the iir register (if source of interrupt) or writing the transmitter holding register 0 0 0 0 fourth modem status clear to send or data set ready or ring indicator or data carrier detect reading the modem status register fifo control register (fcr) the fifo control register (address offset = 2h, dlab = x, write) appears at the same location as the iir. this register is used to enable and clear the fifos and set the rcv r fifo trigger level. note: dma is not supported. fifo enable, bit 0 setting the fifo enable bit to a logic ?1? enables both the xm it and rcvr fifos. clearing this bit to a logic ?0? disables both the xmit and rcvr fifos and clears all bytes from both fifos. when changing from fifo mode to non-fifo (16450) mode, data is aut omatically cleared from the fifos. this bit must be a 1 when other bits in this register are written to or they will not be properly programmed. rcvr fifo reset, bit 1 setting the rcvr fifo reset bit to a logic ?1? clears all byte s in the rcvr fifo and resets its counter logic to 0. the shift register is not cleared. this bit is self-clearing. xmit fifo reset, bit 2 setting the xmit fifo reset bit to a logic ?1? clears all bytes in the xmit fifo and resets its counter logic to 0. the shift register is not cleared. this bit is self-clearing.
smsc ds ? FDC37N3869 page 59 rev. 10/25/2000 dma mode select, bit 3 writing to the dma mode select bit has no effect on t he operation of the uart. t he rxrdy and txrdy pins are not available on this chip. reserved, bits 4 - 5 bits 4 to 5 are reserved . reserved bits cannot be written and return 0 when read. rcvr trigger, bits 6 - 7 the rcvr trigger bits are used to set the trigger level for the rcvr fifo interrupt (table 50). table 50 - rcvr trigger encoding rcvr trigger rcvr fifo trigger level (bytes) bit 7 bit 6 0 0 1 0 1 4 1 0 8 1 1 14 line control register (lcr) the line control register (address offset = 3h, dlab = 0, read/write) contains the formatting information for the serial line. word length select, bits 0 - 1 the word length select bits specify the number of bits in each transmitted or re ceived serial character. note: the start , stop and parity bits are not included in the word length. t he encoding of the word length bits is shown in table 51. table 51 - word length encoding word length select word length (bits) bit 1 bit 0 0 0 5 0 1 6 1 0 7 1 1 8 stop bits, bit 2 the stop bits bit specifies the number of stop bits in each transmitted or receiv ed serial character. table 52 describes the stop bits encoding. table 52 - stop bit encoding stop bits (bit 2) word length number of stop bits 0 - 1 0 5 bits 1.5 1 6 bits 2 1 7 bits 2 1 8 bits 2 note: the receiver ignores stop bits beyond the first, regardl ess of the number of stop bits used in transmitting. parity enable, bit 3 when the parity enable bit is a logic ?1? a parity bit is generated (transmit data) or checked (receive data) between the last data word bit and the first stop bit of the serial data. the parity bi t is used to generate an even or odd number of 1s when the data word bits and the parity bit are summed.
smsc ds ? FDC37N3869 page 60 rev. 10/25/2000 even parity select, bit 4 when the even parity select (eps) bit is a logic ?0? and the parity enable is a logic ?1?, an odd number of logic ?1??s is transmitted or checked in the data word and the parity bit. when the parity enable is a logic ?1? and the eps bit is a logic ?1? an even number of bits is transmitted and checked. stick parity, bit 5 when the stick parity bit is a logic ?1? and the parity e nable is a logic ?1?, the par ity bit is transmitted and then detected by the receiver in the oppos ite state indicated by the eps bit. set break, bit 6 when the set break control bit is a logic ?1?, the transmit dat a output (txd) is forced to t he spacing or logic ?0? state and remains there until reset by a low level bit 6, regardle ss of other transmitter activity . this feature enables the serial port to alert a terminal in a communications system. dlab, bit 7 the divisor latch access bit must be set high (logic ?1?) to access the divisor latches of the baud rate generator during read or write operations. it must be set low (logic ?0 ?) to access the receiver bu ffer register, the transmitter holding register, or the interrupt enable register. modem control register (mcr) the modem control register (address offset = 4h, dlab = x, read/write) manages the interface for the modem, data set, or device emulating a modem. data terminal ready, bit 0 the data terminal ready bit controls the data terminal ready (ndt r) output. when bit 0 is set to a logic ?1?, the ndtr output is forced to a logic ?0?. when bit 0 is a logic ?0?, the ndtr output is forced to a logic ?1?. request to send, bit 1 the request to send bit controls the request to send (nrts) output. . when bit 1 is set to a logic ?1?, the nrts output is forced to a logic ?0?. when bit 1 is a logic ?0?, the nrts output is forced to a logic ?1?. out1, bit 2 the out1 bit controls the output 1 (out1) bit. this bit does not have an output pin and can only be read or written by the cpu. out2, bit 3 the out2 bit is used to enable the uart interrupt. when ou t2 is a logic ?0?, the seri al port interrupt output is forced to a high impedance state; i.e, disabled. when out2 is a logic ?1?, the serial port interrupt outputs are enabled. loop, bit 4 the loop bit provides the loopback feature fo r diagnostic testing of the serial port. when bit 4 is set to logic ?1?, the following occurs: 1) the txd is set to the marking state (logic ?1?). 2) the receiver serial i nput (rxd) is disconnected. 3) the output of the transmitter shift register is ?looped back? into the receiver shift register input. 4) all modem control inputs (ncts, ndsr, nri and ndcd) are disconnected. 5) the four modem contro l outputs (ndtr, nrts, out1 and out2) ar e internally connected to the four modem control inputs (ndsr, ncts, ri and dcd) respectively. 6) the modem control output pins are forced inactive. 7) data that is transmitted is immediately received. the loopback feature allows the processor to verify the transmit and receive data paths of the serial port. the receiver and the transmitter interrupts are fully operational in loopback mode. the modem control interrupts are also operational but the interr upts? sources are now the lower four bits of the modem control r egister instead of the modem control inputs. the inte rrupts are still controlled by t he interrupt enable register. reserved, bits 5 - 7 bits 5 to 7 are reserved . reserved bits cannot be written and return 0 when read.
smsc ds ? FDC37N3869 page 61 rev. 10/25/2000 line status register (lsr) address offset = 5h, dlab = x, read/write data ready, bit 0 data ready (dr) is set to a logic ?1? whenever a comp lete received data character has been transferred into the receiver buffer register or the fifo. dr is reset to a logic ?0? by reading all of the data in the receive buffer register or the fifo. overrun error, bit 1 the overrun error (oe) bit indicates t hat data in the receiver buffer register was not read before the next character was transferred into the register, thereby destroying the previous character. in fifo mode, an overrun error will occur only when the fifo is full and the next character has been comple tely received in the shift register: the character in the shift register is overwritten but not transferred to the fifo. the oe indicator is set to a logic ?1? immediately upon detection of an overrun condition and reset whenev er the line status register is read. parity error, bit 2 the parity error (pe) bit indicates that the received dat a character does not have the co rrect even or odd parity, as selected by the even parity select bit. the pe is set to a logic ?1? upon detection of a parity error and is reset to a logic ?0? whenever the line status regist er is read. in the fifo mode this error is associated with the particular character in the fifo it applies to. this error is indica ted when the associated character is at the top of the fifo. framing error, bit 3 the framing error (fe) bit indicates that the received characte r did not have a valid stop bit. bit 3 is set to a logic ?1? whenever the stop bit following the last data bit or parity bit is detected as a zero bit (spacing level). the fe is reset to a logic ?0? whenever the line status r egister is read. in the fifo mode this error is associated with the particular character in the fifo it applies to. this error is indicat ed when the associated character is at the top of the fifo. the serial port will try to resynchronize after a framing erro r. to do this, it assumes that the framing error was due to the next start bit, so it samp les this ?start? bit twice and then takes in the ?data?. break interrupt, bit 4 the break interrupt (bi) bit is set to a logic ?1? whenever the received data input is hel d in the spacing state (logic ?0?) for longer than a full word transmission time (that is, the to tal time of the start bit + data bits + parity bits + stop bits). the bi is reset after the cpu reads the contents of the line status register. in the fifo mode this error is associated with the particular character in the fifo it applies to. this error is indicated when the associated character is at the top of the fifo. when break occurs only one zero character is loaded into the fifo. restarting after a break is received requires the serial data (rxd ) to be logic ?1? for at least ? bit time. note: lsr bits 1 through 4 produce a rece iver line status interrupt whenever any of the corresponding conditions are detected and the in terrupt is enabled. transmitter holding register empty, bit 5 the transmitter holding register empty (thre) bit indicates t hat the serial port is ready to accept a new character for transmission. in addition, this bit causes the serial port to issue an interrupt when the transmitter holding register interrupt enable is set high. the thre bit is se t to a logic ?1? when a character is transferred from the transmitter holding register into the tr ansmitter shift register. the bit is re set to logic ?0? whenever the cpu loads the transmitter holding register. in the fifo mode this bit is set when the xmit fifo is empty, it is cleared when at least 1 byte is written to the xmit fifo. bit 5 is read-only. transmitter empty, bit 6 the transmitter empty (temt) bit is set to a logic ?1 ? whenever the transmitter holding register (thr) and transmitter shift register (tsr) are both empty. it is rese t to logic ?0? whenever either the thr or tsr contains a data character. bit 6 is read-only. in the fifo m ode this bit is set whenever the thr and tsr are both empty.
smsc ds ? FDC37N3869 page 62 rev. 10/25/2000 rcvr fifo error, bit 7 the rcvr fifo error bit is permanently set to logic ?0? in t he 450 mode. in the fifo mode this bit is set to a logic ?1? when there is at least one parity error, framing error or break indication in the fifo. this bit is cleared when the lsr is read if there are no s ubsequent errors in the fifo. modem status register (msr) the modem status register (address offset = 6h, dlab = x, read/write) provides the cu rrent state of the control lines from the modem or peripheral devic e. in addition to this current state information, four bits of the modem status register provide state change information. these f our bits are set to logic ?1? whenever a control input from the modem changes state. they are reset to logi c ?0? whenever the modem stat us register is read. delta clear to send, bit 0 the delta clear to send (dcts) bit indica tes that the ncts input to the chip has changed state since the last time the msr was read. delta data set ready, bit 1 the delta data set ready (ddsr) bit indicates that the ndsr input has changed state si nce the last time the msr was read. trailing edge of ring indicator, bit 2 the trailing edge of ring indicator (teri) bit indicates that the nri input has changed from logic ?0? to logic ?1?. delta data carrier detect, bit 3 the delta data carrier detect (ddcd) bit indicates that the ndcd input to t he chip has changed state. note: whenever bits 0, 1, 2, or 3 are set to a l ogic ?1?, a modem status interrupt is generated. clear to send, bit 4 the clear to send bit is the complement of the clear to send input (ncts). if the loop bit of the mcr is set to logic ?1?, this bit is equivalent to nrts in the mcr. data set ready, bit 5 the data set ready bit is the complement of the data se t ready input (ndsr). if the loop bit of the mcr is set to logic ?1?, this bit is equivalent to dtr in the mcr. ring indicator, bit 6 the ring indicator bit is the complement of the ring indicator input (nri). if the loop bit of the mcr is set to logic ?1?, this bit is equivalent to out1 in the mcr. data carrier detect, bit 7 the data carrier detect bit is the comp lement of the data carrier detect i nput (ndcd). if the loop bit of the mcr is set to logic ?1?, this bit is equi valent to out2 in the mcr. scratchpad register (scr) the scratchpad register (address offset =7h, dlab =x, read /write) has no effect on t he operation of the serial port. it is intended as a scratchpad register to be used by the programmer to hold data temporarily.
smsc ds ? FDC37N3869 page 63 rev. 10/25/2000 programmable baud rate generator divisor latches the internal baud rate generator (b rg) using the programmable baud rate generator divisor latches ddl and ddm (address offset = 0 and 1, dlab = 1, read/write) is capable of taking any clock input (dc to 3 mhz) and dividing it by any divisor from 1 to 65535. the baud rate generator output is 16x the baud rate. two 8-bit latches store the divisor in 16-bit binary format. these divisor latc hes must be loaded during initializ ation in order to insure desired operation of the baud rate generator. upon loadi ng either of the div isor latches, a 16 bit baud counter is immediately loaded. this prevents long counts on initial load. if a 0 is l oaded into the ddl and ddm registers the brg clock is divided by 3. if a 1 is l oaded the output is the inverse of the input oscillator. if a two is loaded the clock is divided by 2 with a 50% duty cycle. if a 3 or greater is loaded the output is low for 2 bits and high for the remainder of the count. the input clock to the brg is a 1.8462 mhz clock. table 53 shows the baud rates possible with a 1.8462 mhz clock. table 53 - baud rates using 1.8462 mhz clock desired baud rate divisor used to generate 16x clock percent error difference between desired and actual* croc: bit 7 or 6 50 2307 0.03 x 75 1538 0.03 x 110 1049 0.005 x 134.5 858 0.01 x 150 769 0.03 x 300 384 0.16 x 600 192 0.16 x 1200 96 0.16 x 1800 64 0.16 x 2000 58 0.5 x 2400 48 0.16 x 3600 32 0.16 x 4800 24 0.16 x 7200 16 0.16 x 9600 12 0.16 x 19200 6 0.16 x 38400 3 0.16 x 57600 2 1.6 x 115200 1 0.16 x 230400 32770 0.16 1 460800 32769 0.16 1 the affects of reset on the uart registers the reset function (table 54) details the affects of reset on each of the serial port registers. table 54 - reset function register/signal reset control reset state interrupt enable register reset all bits low interrupt identification reg. reset bit 0 is high; bits 1 - 7 low fifo control reset all bits low line control reg. reset all bits low modem control reg. reset all bits low line status reg. reset all bits low except 5 - 6 high modem status reg. reset bits 0 - 3 low; bits 4 - 7 input txd1, txd2 reset high intrpt (rcvr errs) reset/read lsr low
smsc ds ? FDC37N3869 page 64 rev. 10/25/2000 register/signal reset control reset state intrpt (rcvr data ready) reset/read rbr low intrpt (thre) reset/readiir/write thr low out2b reset high rtsb reset high dtrb reset high out1b reset high rcvr fifo reset/fcr1*fcr0/_fcr0 all bits low xmit fifo reset/fcr1*fcr0/_fcr0 all bits low fifo interrupt mode operation when the rcvr fifo and receiver interrupts are enabled (fcr bi t 0 = ?1?, ier bit 0 = ?1?), rcvr interrupts occur as follows: 1) the receive data available interrupt will be iss ued when the fifo has reac hed its programmed trigger level; it is cleared as soon as the fifo drops below its programmed trigger level. 2) the iir receive data available indication also occu rs when the fifo trigger level is reached. it is cleared when the fifo drops below the trigger level. 3) the receiver line status inte rrupt (iir=06h), has higher priori ty than the received data available (iir=04h) interrupt. 4) the data ready bit (lsr bit 0)is set as soon as a c haracter is transferred from the shift register to the rcvr fifo. it is reset when the fifo is empty. when rcvr fifo and receiver interrupts are enabled, rcv r fifo time-out interrupts occur as follows: 1) a fifo time-out interrupt occurs if all the following conditions exist: at least one character is in the fifo the most recent serial character received was longer than 4 continuous character times ago. (if 2 stop bits are programmed, the second one is included in this time delay.) the most recent cpu read of the fifo was longer than 4 continuous character times ago. 2) this will cause a maximum character received to interrupt issued delay of 160 msec at 300 baud with a 12 bit character. 3) character times are calculated by using the rcl k input for a clock signal (this makes the delay proportional to the baud rate). 4) when a time-out interrupt has occurred it is cleared and the timer reset when the cpu reads one character from the rcvr fifo. 5) when a time-out interrupt has not occurred the time-out timer is rese t after a new character is received or after the cpu reads the rcvr fifo. when the xmit fifo and transmitter interrupts are enabled (fcr bit 0 = ?1?, ier bit 1 = ?1?), xmit interrupts occur as follows: 1) the transmitter holding register interrupt (02h) occurs w hen the xmit fifo is empty; it is cleared as soon as the transmitter holding register is written to (1 of 16 characte rs may be written to the xmit fifo while servicing this interrupt) or the iir is read. 2) the transmitter fifo empty indications will be delayed 1 c haracter time minus the last stop bit time whenever the following occurs: thre=1 and there have not been at least two bytes at the same time in the transmit fifo since the last thre=1. the transmitter interrupt a fter changing fcr0 will be imm ediate, if it is enabled. character time-out and rcvr fifo trigger level interrupt s have the same priority as the current received data available interrupt; xmit fifo empty has the same priority as the current transmitter holding register empty interrupt. fifo polled mode operation with fcr bit 0 = ?1? resetting ier bits 0, 1, 2 or 3 or all to zero puts the uart in the fi fo polled mode of operation. since the rcvr and xmitter are controlled separately, either one or both can be in the polled mode of operation. in this mode, the user?s program w ill check rcvr and xmitter stat us via the lsr. lsr def initions for the fifo polled mode are as follows:
smsc ds ? FDC37N3869 page 65 rev. 10/25/2000 1) bit 0=1 as long as there is one byte in the rcvr fifo. 2) bits 1 to 4 specify which error(s) have occurred. c haracter error status is handled the same way as when in the interrupt mode, the iir is not affected since eir bit 2=0. 3) bit 5 indicates when the xmit fifo is empty. 4) bit 6 indicates that both the xmit fifo and shift register are empty. 5) bit 7 indicates whether there are any errors in the rcvr fifo. there is no trigger level reached or time-out condition indicated in the fifo polled mode, however, the rcvr and xmit fifos are still fully capable of holding characters. table 55 - individual uart channel register summary register address* register name register symbol bit 0 bit 1 addr = 0 dlab = 0 receive buffer register (read only) rbr data bit 0 (note 1) data bit 1 addr = 0 dlab = 0 transmitter holding register (write only) thr data bit 0 data bit 1 addr = 1 dlab = 0 interrupt enable register ier enable received data available interrupt (erdai) enable transmitter holding register empty interrupt (ethrei) addr = 2 interrupt ident. register (read only) iir ?0? if interrupt pending interrupt id bit addr = 2 fifo control register (write only) fcr fifo enable rcvr fifo reset addr = 3 line control register lcr word length select bit 0 (wls0) word length select bit 1 (wls1) addr = 4 modem control register mcr data terminal ready (dtr) request to send (rts) addr = 5 line status register lsr da ta ready (dr) overrun error (oe) addr = 6 modem status register msr delta clear to send (dcts) delta data set ready (ddsr) addr = 7 scratch register (note 4) scr bit 0 bit 1 addr = 0 dlab = 1 divisor latch (ls) ddl bit 0 bit 1 addr = 1 dlab = 1 divisor latch (ms) dlm bit 8 bit 9 *dlab is bit 7 of the line control register (addr = 3). note 1: bit 0 is the least significant bit. it is t he first bit serially transmitted or received. note 2: when operating in the xt mode, this bit will be set any time that the transmitter shift register is empty.
smsc ds ? FDC37N3869 page 66 rev. 10/25/2000 table 56 - individual uart channel register summary continued bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 data bit 2 data bit 3 data bit 4 data bit 5 data bit 6 data bit 7 data bit 2 data bit 3 data bit 4 data bit 5 data bit 6 data bit 7 enable receiver line status interrupt (elsi) enable modem status interrupt (emsi) 0 0 0 0 interrupt id bit interrupt id bit (note 5) 0 0 fifos enabled (note 5) fifos enabled (note 5) xmit fifo reset dma mode select (note 6) reserved reserved rcvr trigger lsb rcvr trigger msb number of stop bits (stb) parity enable (pen) even parity select (eps) stick parity set break divisor latch access bit (dlab) out1 (note 3) out2 (note 3) loop 0 0 0 parity error (pe) framing error (fe) break interrupt (bi) transmitter holding register (thre) transmitter empty (temt) (note 2) error in rcvr fifo (note 5) trailing edge ring indicator (teri) delta data carrier detect (ddcd) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 bit 10 bit 11 bit 12 bit 13 bit 14 bit 15 note 3: this bit no longer has a pin associated with it. note 4: when operating in the xt mode, th is register is not available. note 5: these bits are always zero in the non-fifo mode. note 6: writing a one to this bit has no effect. dma modes are not supported in this chip. notes on serial port fifo mode operation general the rcvr fifo will hold up to 16 bytes regardl ess of which trigger level is selected. tx and rx fifo operation the tx portion of the uart transmits data through txd as soon as the cpu loads a byte into the tx fifo. the uart will prevent loads to the tx fifo if it currently holds 16 characters. loading to the tx fifo will again be enabled as soon as the next character is tr ansferred to the tx shift register. t hese capabilities account for the largely autonomous operation of the tx. the uart starts the above operations typi cally with a tx interrupt. the chip issues a tx interrupt whenever the tx fifo is empty and the tx interrupt is enabled, except in the followi ng instance. assume that the tx fifo is empty and the cpu starts to load it. when the first byte enters t he fifo the tx fifo empty in terrupt will transition from active to inactive. depending on the execution speed of the service routine software, the uart may be able to transfer this byte from the fifo to the shift register before the cpu loads another byte . if this happens, the tx fifo will be empty again and typically the uart?s interrupt line woul d transition to the active st ate. this could cause a system with an interrupt control unit to record a tx fifo empty condition, ev en though the cpu is currently servicing that interrupt. therefore, after the first byte has been loaded into the fifo the uart will wait one serial character transmission time before i ssuing a new tx fifo empty interrupt. this one character tx interrupt
smsc ds ? FDC37N3869 page 67 rev. 10/25/2000 delay will remain active until at least two bytes have been loaded into the fifo, c oncurrently. when the tx fifo empties after this condition, the tx interrupt will be activated without a one character delay. rx support functions and operation are quite different from those described for the transmitter. the rx fifo receives data until the number of bytes in the fifo equals the selected interrupt trigger le vel. at that time if rx interrupts are enabled, the uart will issue an interrupt to the cpu. the rx fifo will conti nue to store bytes until it holds 16 of them. it will not accept any more data w hen it is full. any more data entering t he rx shift register will set the overrun error flag. normally, the fifo depth and the programmable trigger levels will gi ve the cpu ample time to empty the rx fifo before an overrun occurs. one side-effect of having a rx fifo is that the selected interr upt trigger level may be abov e the data level in the fifo. this could occur when data at t he end of the block contains fewer bytes than the trigger level. no interrupt would be issued to the cpu and the dat a would remain in the uart. to prevent the software from having to check for this situation the chip incorporates a time-out interrupt. the time-out interrupt is activated when there is a least one byte in the rx fi fo, and neither the cpu nor the rx shift register has accessed the rx fifo within 4 character times of the last byte. the time-out interrupt is cleared or reset when the cpu reads the rx fifo or another character enters it. these fifo related features allow opt imization of cpu/uart tr ansactions and are especially useful given the higher baud rate capability (256k baud). infrared interface the FDC37N3869 infrared interface provides a two-way wireless communications port using infrared as the transmission medium. several infrared protocols have been pr ovided in this implementation including irda v1.1 (sir/fir), askir, and consumer ir (figure 3). for mo re information consult the smsc infrared communication controller (ircc) specification. the irda v1.0 (sir) and askir formats are driven by the ac e registers found in uart2. the uart2 registers are described in section serial port (uart) starting on page 56. the base address for uart2 is programmed in cr25, the uart2 base address register (see section cr25 on page 110). the irda v1.2 (fir) and consumer ir formats are driven by the sce registers. descripti ons of these registers can be found in the smsc infrared communicati ons controller specification. the ba se address for the sce registers is programmed in cr2b, the sce base addr ess register (see section cr28 on page 111). irda sir/fir and askir irda sir (v1.0) specifies asynchronous serial communication at baud rates up to 115.2kbps. each byte is sent serially lsb first beginning with a zero value start bit. a zero is signaled by sending a single infrared pulse at the beginning of the serial bit time. a one is signaled by the abs ence of an infrared pulse during the bit time. please refer to section ac timing for the parameters of these pulses and the irda waveforms. irda fir (v1.2) includes irda v1.0 sir and additionally s pecifies synchronous serial communications at data rates up to 4mbps. data is transferred lsb first in packets that can be up to 2048 bits in length. ir da v1.2 includes .576mbps and 1.152mbps data rates using an encoding scheme that is similar to sir. the 4m bps data rate uses a pulse position modulation (ppm) technique. the askir infrared allows asynchronous serial communicati on at baud rates up to 19.2kbps. each byte is sent serially lsb first beginning with a zero value start bit. a zero is signaled by sending a 500khz carrier waveform for the duration of the serial bit time. a one is signaled by t he absence of carrier during the bit time. please refer to section ac timing for the parameters of the askir waveforms. consumer ir the FDC37N3869 consumer ir interface is a general -purpose amplitude shift ke yed encoder/decoder with programmable carrier and bit-cell rates that can emulat e many popular tv remote encoding formats; including, 38khz ppm, pwm and rc-5. the carrier frequency is progra mmable from 1.6mhz to 6.25khz. the bit-cell rate range is 100khz to 390hz.
smsc ds ? FDC37N3869 page 68 rev. 10/25/2000 hardware interface the FDC37N3869 ir hardware interface is shown in figure 3. this interface supports two types of external fir transceiver modules. one uses a mode pin (ir mode) to program the data rate , while the other has a second rx data pin (irr3). the FDC37N3869 uses pin 21 for these functions. pin 21 has ir mode and irr3 as its first and second alternate function, respectively. these func tions are selected through cr29 as shown in table 57. table 57 - fir transceiver module-type select hp mode 1 function 0 ir mode 1 irr3 note 1 : hpmode is cr29, bit 4 (see secti on cr29 on page 112). refer to the infrared interface block diagram on the following page for hpmo de implementation. the fast bit is used to select between the sir mode and fi r mode receiver, regardless of the transceiver type. if fast = 1, the fir mode receiver is selected; if f ast = 0, the sir mode receiver is selected (table 58). table 58 - ir rx data pin selection control signals inputs fast hpmode rx1 rx2 0 x rx1=rxd2 rx2=irrx2 x 0 rx1=rxd2 rx2=irrx2 1 1 rx1=ir mode/irr3 rx2=ir mode/irr3
smsc ds ? FDC37N3869 page 69 rev. 10/25/2000 ir half duplex turnaround delay time if the half duplex option is chosen ther e is an ir half duplex time-out that constrains ircc direction mode changes. this time-out starts as each bit is transferred and prevent s direction mode changes until t he time-out expires. the timer is restarted whenever new data arri ves in the current direction mode. fo r example, if data is loaded into the transmit buffer while a character is being received, the tr ansmission will not start until t he last bit has been received and the time-out expires. if the start bi t of another character is received during this time-out, the timer is restarted after the new character is received. the half dupl ex time-out is programmable from 0 to 25.5ms in 100 s increments (see section cr2d on page 112). figure 3 - infrared interface block diagram ircc block raw tv ask irda fir com out mux com ir aux tx1 rx1 tx2 rx2 tx3 rx3 1 2 ir mode fast hpmode 0 1 1 0 g.p. data fast bit rxd2 irtx2 irrx2 txd2 ir mode /irr3
smsc ds ? FDC37N3869 page 70 rev. 10/25/2000 parallel port the FDC37N3869 incorporates an ibm xt/at compatible parallel port. the FDC37N3869 supports the optional ps/2 type bi-directional parallel port (spp), the enhanced para llel port (epp) and the ext ended capabilities port (ecp) parallel port modes. refer to the FDC37N3869 configurat ion registers and the followi ng hardware configuration description for information on disabling, powering down, changing the base address, and selecting the mode of operation of the parallel port. the FDC37N3869 also incorporates smsc?s chiprotect circ uitry, which prevents possible damage to the parallel port due to printer power-up. the functionality of the parallel port is achieved through the use of eight addressable ports, with their associated registers and control gating. the control and data port are read/ write by the cpu, the status port is read/write in the epp mode. the address map and bit encoding of the parallel port registers is shown in t able 59; the parallel port connector is shown in table 63. table 59 - parallel port registers base address offset d0 d1 d2 d3 d4 d5 d6 d7 data port 1 00h pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 status port 1 01h tmout 0 0 nerr slct pe nack nbusy control port 1 02h strob e autofd ninit slc irqe pcd 0 0 epp addr port 2,3 03h pd0 pd1 pd2 pd3 pd4 pd5 pd6 ad7 epp data port 0 2,3 04h pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 epp data port 1 2,3 05h pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 epp data port 2 2,3 06h pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 epp data port 3 2,3 07h pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 note 1 : these registers are available in all modes. note 2 : these registers are only available in epp mode. note 3 : for epp mode, iochrdy must be connected to the isa bus.
smsc ds ? FDC37N3869 page 71 rev. 10/25/2000 table 60 - parallel port connector host connector pin number standard epp ecp 1 75 nstrobe nwrite nstrobe 2-9 69-66, 64-61 pdata<0:7> pdata<0:7> pdata<0:7> 10 60 nack intr nack 11 59 busy nwait busy, periphack(3) 12 58 pe (nu) perror, nackreverse(3) 13 57 select (nu) select 14 74 nautofd ndat astb nautofd, hostack(3) 15 73 nerror (nu) nfault(1) nperiphrequest(3) 16 72 ninit (nu) ninit(1) nreverserqst(3) 17 71 nselectin naddrstrb nselectin(1,3) (1) = compatible mode (3) = high speed mode note: for the cable interconnection required for ecp suppor t and the slave connector pin numbers, refer to the ieee 1284 extended capabilities port protocol and isa standard , rev. 1.09, jan. 7, 1993. this document is available from microsoft. ibm xt/at compatible, bi-directional and epp modes data port address offset = 00h the data port is located at an offset of ?00h? from the base addre ss. the data register is cleared at initialization by reset. during a write operation, the data register latches the contents of t he data bus with the rising edge of the niow input. the contents of this register are buffered (non inverting) and output onto the pd0 - pd7 ports. during a read operation in spp mode, pd0 - pd7 ports are buffered (not latched) and out put to the host cpu. status port address offset = 01h the status port is located at an offset of ?01h? from the base address. the contents of this register are latched for the duration of an nior read cycle. the bits of the status port are defined as follows: bit 0 tmout - time out this bit is valid in epp mode only and indicates that a 10 usec time out has occurred on the epp bus. a logic ?0? means that no time out error has occurr ed; a logic ?1? means that a time out error has been detected. this bit is cleared by a reset. writing a one to this bit clears the time out status bit. on a write, this bit is self clearing and does not require a write of a zero. wr iting a zero to this bit has no effect. bits 1, 2 - are not implemented as register bits, during a read of the printer status register these bi ts are a low level. bit 3 nerr - nerror the level on the nerror input is read by the cpu as bit 3 of the printer status register. a logic ?0? means an error has been detected; a logic ?1? m eans no error has been detected. bit 4 slct - printer selected status the level on the slct input is read by t he cpu as bit 4 of the printer status r egister. a logic ?1? means the printer is on line; a logic ?0? means it is not selected. bit 5 pe - paper end
smsc ds ? FDC37N3869 page 72 rev. 10/25/2000 the level on the pe input is read by the cp u as bit 5 of the printer status regi ster. a logic ?1? indicates a paper end; a logic ?0? indicates the presence of paper. bit 6 nack - nacknowledge the level on the nack input is read by the cpu as bit 6 of the printer stat us register. a logic 0 means that the printer has received a character and can now accept another. a logic ?1? means t hat it is still pr ocessing the last character or has not received the data. bit 7 nbusy - nbusy the complement of the level on the nbusy input is read by the cpu as bit 7 of t he printer status register. a logic 0 in this bit means that the printer is busy and cannot accept a new c haracter. a logic ?1? means that it is ready to accept the next character. control port address offset = 02h the control port is located at an offset of ?02h? from the base address. the control register is initialized by the reset input, bits 0 to 5 only being affected; bits 6 and 7 are hard wired low. bit 0 strobe - strobe this bit is inverted and output onto the nstrobe output. bit 1 autofd ? autofeed this bit is inverted and output onto the nautofd output. a logic ?1? causes the printer to generate a line feed after each line is printed. a logic 0 means no autofeed. bit 2 ninit - ninitiate output this bit is output onto the nini t output without inversion. bit 3 slctin - printer select input this bit is inverted and output onto the nslctin output. a logic ?1? on this bit selects the printer; a logic ?0? means the printer is not selected. bit 4 irqe - interrupt request enable the interrupt request enable bit when set to a high level ma y be used to enable interrupt requests from the parallel port to the cpu. an interrupt r equest is generated on the irq port by a posit ive going nack input. when the irqe bit is programmed low the irq is disabled. bit 5 pcd - parallel control direction parallel control direction is valid in extended mode only (cr#1< 3>=0). in printer mode, t he direction is always out regardless of the state of this bit. in bi-directional mode, a logic ?0? means that the printer por t is in output mode (write); a logic ?1? means that the printer port is in input mode (read). bits 6 and 7 during a read are a low level, and cannot be written. epp address port address offset = 03h the epp address port is located at an offset of ?03h? from the base address. the address register is cleared at initialization by reset. during a write operation, the c ontents of db0-db7 are buffer ed (non inverting) and output onto the pd0 - pd7 ports, the leading edge of niow causes an epp address write cycle to be performed, the trailing edge of iow latches the data for the duration of t he epp write cycle. during a read operation, pd0 - pd7 ports are read, the leading edge of ior causes an epp address read cycle to be performed and the data output to the host cpu, the deassertion of addrstb latches the pdata fo r the duration of the ior cycle. this register is only available in epp mode.
smsc ds ? FDC37N3869 page 73 rev. 10/25/2000 epp data port 0 address offset = 04h the epp data port 0 is located at an offset of ?04h? from the base address. the data register is cleared at initialization by reset. during a write operation, the c ontents of db0-db7 are buffer ed (non inverting) and output onto the pd0 - pd7 ports, the leading edge of niow causes an epp data write cycle to be performed, the trailing edge of iow latches the data fo r the duration of the epp writ e cycle. during a read operation, pd0 - pd7 ports are read, the leading edge of ior causes an epp read cycle to be performed and the data output to the host cpu, the deassertion of datastb latches the pdata for the duration of the ior cycle. th is register is only available in epp mode. epp data port 1 address offset = 05h the epp data port 1 is located at an offset of ?05h? from the base address. refer to epp data port 0 for a description of operation. this regi ster is only available in epp mode. epp data port 2 address offset = 06h the epp data port 2 is located at an offset of ?06h? from the base address. refer to epp data port 0 for a description of operation. this regi ster is only available in epp mode. epp data port 3 address offset = 07h the epp data port 3 is located at an offset of ?07h? from the base address. refer to epp data port 0 for a description of operation. this regi ster is only available in epp mode. epp 1.9 operation when the epp mode is selected in the configuration register , the standard and bi-directional modes are also available. if no epp read, write or address cycle is current ly executing, then the pdx bus is in the standard or bi- directional mode, and all output signals (s trobe, autofd, init) are as set by the spp control port and direction is controlled by pcd of the control port. in epp mode, the system timing is closely coupled to the epp timing. for this reason, a watchdog timer is required to prevent system lockup. the ti mer indicates if more than 10 sec have elapsed from the start of the epp cycle (nior or niow asserted) to nwait being deasserted (after comm and). if a time-out occurs, the current epp cycle is aborted and the time-out condition is indicated in status bit 0. during an epp cycle, if strobe is active, it overrides t he epp write signal forcing the pdx bus to always be in a write mode and the nwrite signal to always be asserted. software constraints before an epp cycle is executed, the softw are must ensure that the c ontrol register bit pcd is a logic ?0? (i.e. a 04h or 05h should be written to the contro l port). if the user leaves pcd as a logic ?1?, and attempts to perform an epp write, the chip is unable to perform the write (because pcd is a logic ?1?) and will appear to perform an epp read on the parallel bus, no error is indicated. epp 1.9 write the timing for a write operation (address or data) is shown in timing diagram epp 1.9 write data or address cycle. iochrdy is driven active low at the start of each epp write and is released when it has been determined that the write cycle can complete. the write cycle can complete under the following circumstances: 1) if the epp bus is not ready (nwait is active lo w) when ndatastb or naddrstb goes active then the write can complete when nwait goes inactive high. 2) if the epp bus is ready (nwait is inactive high) then the chip must wait for it to go active low before changing the state of ndatastb, nwrite or naddrstb. the write can complete once nwait is determined inactive.
smsc ds ? FDC37N3869 page 74 rev. 10/25/2000 write sequence of operation 1) the host selects an epp register, places dat a on the sdata bus and drives niow active. 2) the chip drives iochrdy inactive (low). 3) if wait is not asserted, the chip must wait until wait is asserted. 4) the chip places address or data on pdat a bus, clears pdir, and asserts nwrite. 5) chip asserts ndatastb or naddrstrb indicating that pdata bus contains valid information, and the write signal is valid. 6) peripheral deasserts nwait, indicating that any setup requirements have been sa tisfied and the chip may begin the termination phase of the cycle. 7) a) the chip deasserts ndatastb or naddrstrb, th is marks the beginning of the termination phase. if it has not already done so, the peripher al should latch the information byte now. b) the chip latches the data from the sdata bus fo r the pdata bus and asserts (releases) iochrdy allowing the host to complete the write cycle. 8) peripheral asserts nwait, indicating to the hos t that any hold time requirements have been satisfied and acknowledging the termination of the cycle. 9) chip may modify nwrite and npdata in preparation for the next cycle. epp 1.9 read the timing for a read operation (data) is shown in timing diagram epp read data cycle. iochrdy is driven active low at the start of each epp read and is released when it has been determined that the read cycle can complete. the read cycle can complete under the following circumstances: 1) if the epp bus is not ready (nwait is active low) when ndatastb goes active then the read can complete when nwait goes inactive high. 2) if the epp bus is ready (nwait is inactive high) then the chip must wait for it to go active low before changing the state of write or before ndatastb goes active . the read can complete once nwait is determined inactive. read sequence of operation 1) the host selects an epp register and drives nior active. 2) the chip drives iochrdy inactive (low). 3) if wait is not asserted, the chip must wait until wait is asserted. 4) the chip tri-states the pd ata bus and deasserts nwrite. 5) chip asserts ndatastb or naddrstrb indicating that pd ata bus is tri-stated, pdir is set and the nwrite signal is valid. 6) peripheral drives pdata bus valid. 7) peripheral deasserts nwait, indicating that pdat a is valid and the chip may begin the termination phase of the cycle. 8) a) the chip latches the data fr om the pdata bus for the sdata bus, deasserts datastb or naddrstrb, this marks the beginning of the termination phase. b) the chip drives the valid dat a onto the sdata bus and asserts (re leases) iochrdy allowing the host to complete the read cycle. 9) peripheral tri-states the pdata bus and asserts nwait, indicating to the hos t that the pdata bus is tri-stated. 10) chip may modify nwrite, pdir and np data in preparation for the next cycle.
smsc ds ? FDC37N3869 page 75 rev. 10/25/2000 epp 1.7 operation when the epp 1.7 mode is selected in t he configuration register , the standard and bi-directional modes are also available. if no epp read, write or address cycle is current ly executing, then the pdx bus is in the standard or bi- directional mode, and all output signals (s trobe, autofd, init) are as set by the spp control port and direction is controlled by pcd of the control port. in epp mode, the system timing is closely coupled to the epp timing. for this reason, a watchdog timer is required to prevent system lockup. the timer indicates if more than10usec have elapsed from the start of the epp cycle (nior or niow asserted) to the end of the cycle nior or niow deasserted). if a time-out occurs, the current epp cycle is aborted and the time-out condition is indicated in status bit 0. software constraints before an epp cycle is executed, the software must ensure t hat the control register bits d0, d1 and d3 are set to zero. also, bit d5 (pcd) is a logic ?0? for an epp write or a logic ?1? for and epp read. epp 1.7 write the timing for a write operation (address or data) is shown in timing diagram epp 1.7 write data or address cycle. iochrdy is driven active low when nwait is active lo w during the epp cycle. th is can be used to extend the cycle time. the write cycle can complete when nwait is inactive high. write sequence of operation 1) the host sets pdir bit in the control regist er to a logic ?0?. this asserts nwrite. 2) the host selects an epp register, places dat a on the sdata bus and drives niow active. 3) the chip places address or data on pdata bus. 4) chip asserts ndatastb or naddrstrb indicating that pdata bus contains valid information, and the write signal is valid. 5) if nwait is asserted, iochrdy is deasserted until the peripheral deasserts nw ait or a time-out occurs. 6) when the host deasserts ni0w the chip deasserts ndatastb or naddrstrb and latches the data from the sdata bus for the pdata bus. 7) chip may modify nwrite, pdir and npdata in preparation of the next cycle. epp 1.7 read the timing for a read operation (data) is shown in timi ng diagram epp 1.7 read data cycle. iochrdy is driven active low when nwait is active low during the epp cycle. this can be used to extend the cycle time. the read cycle can complete when nwait is inactive high. read sequence of operation 1) the host sets pdir bit in the control register to a l ogic ?1?. this deasserts nwrite and tri-states the pdata bus. 2) the host selects an epp register and drives nior active. 3) chip asserts ndatastb or naddrstrb indicating that pdata bus is tri-stated, pd ir is set and the nwrite signal is valid. 4) if nwait is asserted, iochrdy is deasserted unt il the peripheral deasserts nwait or a time-out occurs. 5) the peripheral drives pdata bus valid. 6) the peripheral deasserts nwait, indicating that pd ata is valid and the chip may begin the termination phase of the cycle. 7) when the host deasserts ni0r the chip deasserts ndatastb or naddrstrb. 8) peripheral tri-states the pdata bus. 9) chip may modify nwrite, pdir and npdata in preparation of the next cycle.
smsc ds ? FDC37N3869 page 76 rev. 10/25/2000 table 61 - epp pin descriptions epp signal epp name type description nwrite nwrite o this signal is active low. it denotes a write operation. pd<0:7> address/data i/o bi-directional epp byte wide address and data bus. intr interrupt i this signal is active high and positive edge triggered. (pass through with no inversion, same as spp). wait nwait i this signal is active low. it is driven inactive as a positive acknowledgment from the device t hat the transfer of data is completed. it is driven active as an indication that the device is ready for the next transfer. datastb ndata strobe o this signal is active low. it is used to denote data read or write operation. reset nreset o this signal is active low. when driven active, the epp device is reset to its initial operational mode. addrstb naddress strobe o this signal is active low. it is used to denote address read or write operation. pe paper end i same as spp mode. slct printer selected status i same as spp mode. nerr error i same as spp mode. pdir parallel port direction o this output shows the directio n of the data transfer on the parallel port bus. a low means an output/write condition and a high means an input/read condition. this signal is normally a low (output/write) unless pcd of the cont rol register is set or if an epp read cycle is in progress. note 1: spp and epp can use 1 common register. note 2: nwrite is the only epp output that can be over-ridden by spp control port during an epp cycle. for correct epp read cycles, pcd is required to be a low.
smsc ds ? FDC37N3869 page 77 rev. 10/25/2000 extended capabilities parallel port ecp provides a number of advantages, so me of which are listed below. the i ndividual features are explained in greater detail in the rema inder of this section. high performance half-duplex forward and reverse channel interlocked handshake, for fast reliable transfer optional single byte rle compression for improved throughput (64:1) channel addressing for low-cost peripherals maintains link and data layer separation permits the use of active output drivers permits the use of adaptive signal timing peer-to-peer capability vocabulary the following terms are used in this document: assert when a signal asserts it transitions to a ?tr ue? state, when a signal deassert s it transitions to a ?false? state. forward host to peripheral communication. reverse peripheral to host communication. pword a port word; equal in size to the width of the i sa interface. for this implem entation, pword is always 8 bits. 1 a high level 0 a low level these terms may be considered synonymous: periphclk, nack hostack, nautofd periphack, busy nperiphrequest, nfault nreverserequest, ninit nackreverse, perror xflag, select ecpmode, nselectln hostclk, nstrobe reference document: ieee 1284 extended capabilities port pr otocol and isa interface standard , rev 1.09, jan 7, 1993. this document is available from microsoft. the bit map of the ext ended parallel port registers is shown in table 65. table 62 - ecp registers d7 d6 d5 d4 d3 d2 d1 d0 data pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 ecpafifo 2 addr/rle address or rle field dsr 1 nbusy nack perror select nfault 0 0 0 dcr 1 0 0 direction ackinten selectin ninit autofd strobe cfifo 2 parallel port data fifo ecpdfifo 2 ecp data fifo tfifo 2 test fifo cnfga 0 0 0 1 0 0 0 0 cnfgb compress intrval ue irq software select dma software select ecr mode nerrintren dmaen serviceintr full empty note 1 : these registers are available in all modes. note 2 : all fifos use one common 16 byte fifo.
smsc ds ? FDC37N3869 page 78 rev. 10/25/2000 isa implementation standard this specification describes the standard isa interface to the extended capabilities port (ecp). all isa devices supporting ecp must meet the requirement s contained in this section or the por t will not be supported by microsoft. for a description of the ecp protocol, please refer to the ieee 1284 extended capabilitie s port protocol and isa interface standard , rev. 1.09, jan.7, 1993. this doc ument is available from microsoft. description the port is software and hardware compatible with existing parallel ports so that it may be used as a standard lpt port if ecp is not required. the port is designed to be simple and requires a sm all number of gates to implement. it does not do any ?protocol? negotiation, rather it provides an automatic high burst-bandwid th channel that supports dma for ecp in both the forward and reverse directions. small fifos are employed in both forward and reverse di rections to smooth data fl ow and improve the maximum bandwidth requirement. the size of the fifo is 16 by tes deep. the port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. the port also supports run length encoded (rle) decom pression (required) in hardware. compression is accomplished by counting identical bytes and transmitting an rle byte that indicates how many times the next byte is to be repeated. decompression simply intercepts the rle by te and repeats the following byte the specified number of times. hardware support for compression is optional. table 63 - ecp pin descriptions name type description nstrobe o during write operations nstrobe r egisters data or address into the slave on the asserting edge (handshakes with busy). pdata 7:0 i/o contains addre ss or data or rle data. nack i indicates valid data driven by the peripheral when asserted. this signal handshakes with nautofd in reverse. periphack (busy) i this signal deasserts to indica te that the peripheral can accept data. this signal handshakes with nstrobe in the fo rward direction. in the reverse direction this signal indicates whether the data lines contain ecp command information or data. the peripheral uses this signal to flow control in the forward direction. it is an ?interlocked? handshake with nstrobe. periphack also provides command information in the reverse direction. perror (nackreverse) i used to acknowledge a change in t he direction the transfer (asserted = forward). the peripheral drives this signal low to acknowledge nreverserequest. it is an ?interlocked? handshake with nreverserequest. the host relies upon nackreverse to determine when it is permitted to drive the data bus. select i indicates printer on line. nautofd (hostack) o requests a byte of data from the per ipheral when asserted, handshaking with nack in the reverse direction. in the forward direction this signal indicates whether the data lines cont ain ecp address or data. the host drives this signal to flow control in the reverse direction. it is an ?interlocked? handshake with nack. hostack also provides co mmand information in the forward phase. nfault (nperiphrequest) i generates an error interrupt when asse rted. this signal provides a mechanism for peer-to-peer communication. this signal is valid only in the forward direction. during ecp mode the peri pheral is permitted (but not required) to drive this pin low to request a reverse trans fer. the request is merely a ?hint? to the host; the host has ultimate control over the transfer direction. this signal would be typically used to generate an interrupt to the host cpu. ninit o sets the transfer direction (asserted = reverse, deasserted = forward). this pin is driven low to place the channel in the reverse direction. the peripheral is only allowed to drive the bi-direc tional data bus while in ecp mode and hostack is low and nselectin is high. nselectin o always deasserted in ecp mode. register definitions the register definitions ar e based on the standard ibm addresses for lpt. all of the standard printer ports are supported. the additional registers attach to an upper bit decode of the standard lpt port definition to avoid conflict
smsc ds ? FDC37N3869 page 79 rev. 10/25/2000 with standard isa devices. the port is equivalent to a generic parallel port interfac e and may be operated in that mode. the port registers vary depending on the mode field in the ecr (table 68) . table 67 lists these dependencies. operation of the devices in modes other that thos e specified is undefined. table 64 - ecp register definitions name address (note 1) ecp modes function data +000h r/w 000-001 data register ecpafifo +000h r/w 011 ecp fifo (address) dsr +001h r/w all status register dcr +002h r/w all control register cfifo +400h r/w 010 parallel port data fifo ecpdfifo +400h r/w 011 ecp fifo (data) tfifo +400h r/w 110 test fifo cnfga +400h r 111 configuration register a cnfgb +401h r/w 111 configuration register b ecr +402h r/w all extended control register note 1: these addresses are added to the parallel port base address as selected by configurati on register or jumpers. note 2: all addresses are qualified with aen. refer to the aen pin definition. table 65 - mode descriptions mode description (refer to ecr register description) 000 spp mode 001 ps/2 parallel port mode 010 parallel port data fifo mode 011 ecp parallel port mode 100 epp mode (if this option is enabled in the configurat ion registers) 101 (reserved) 110 test mode 111 configuration mode data and ecpafifo port address offset = 00h modes 000 and 001 (data port) the data port is located at an offset of ?00h? from the base addre ss. the data register is cleared at initialization by reset. during a write operation, the data register latc hes the contents of the data bus on t he rising edge of the niow input. the contents of this register are buffered (non inverting) and output onto the pd0 - pd7 ports. during a read operation, pd0 - pd7 ports are read and output to the host cpu. mode 011 (ecp fifo - address/rle) a data byte written to this address is placed in the fi fo and tagged as an ecp address/ rle. the hardware at the ecp port transmits this byte to the per ipheral automatically. t he operation of this regist er is only defined for the forward direction (direction is 0). refer to the ecp pa rallel port forward timing diagram, located in the timing diagrams section of this data sheet.
smsc ds ? FDC37N3869 page 80 rev. 10/25/2000 device status register (dsr) address offset = 01h the status port is located at an offset of ?01h? from the base address. bits 0 - 2 are not implemented as register bits, during a read of the printer stat us register these bits are a low level. the bits of the status port are defined as follows: bit 3 nfault the level on the nfault input is read by the cpu as bit 3 of the device status register. bit 4 select the level on the select input is read by the cp u as bit 4 of the device status register. bit 5 perror the level on the perror input is read by the cpu as bit 5 of the device status register . printer status register. bit 6 nack the level on the nack input is read by the cpu as bit 6 of the device status register. bit 7 nbusy the complement of the level on the bu sy input is read by the cpu as bit 7 of the device status register. device control register (dcr) address offset = 02h the control register is located at an offs et of ?02h? from the base address. the control regist er is initialized to zero by the reset input, bits 0 to 5 only being affected; bits 6 and 7 are hard wired low. bit 0 strobe - strobe this bit is inverted and out put onto the nstrobe output. bit 1 autofd - autofeed this bit is inverted and output onto the nautofd output. a logic 1 causes the printer to generate a line feed after each line is printed. a logic 0 means no autofeed. bit 2 ninit - ninitiate output this bit is output onto the ni nit output without inversion. bit 3 selectin this bit is inverted and output onto the nslctin output. a logic 1 on this bi t selects the printer; a logic 0 means the printer is not selected. bit 4 ackinten - interrupt request enable the interrupt request enable bit when set to a high level ma y be used to enable interrupt requests from the parallel port to the cpu due to a low to high transition on the nack input. refer to the description of the inte rrupt under operation, interrupts. bit 5 direction if mode=000 or mode=010, this bit has no effe ct and the direction is always out regar dless of the state of this bit. in all other modes, direction is valid and a l ogic 0 means that the printer port is in output mode (write); a logic 1 means that the printer port is in input mode (read). bits 6 and 7 during a read are a low leve l, and cannot be written.
smsc ds ? FDC37N3869 page 81 rev. 10/25/2000 cfifo (parallel port data fifo) address offset = 400h mode = 010 bytes written or dmaed from the system to this fifo are transmitted by a hardwar e handshake to the peripheral using the standard parallel port pr otocol. transfers to the fifo are byte aligned. this mode is only defined for the forward direction. ecpdfifo (ecp data fifo) address offset = 400h mode = 011 bytes written or dmaed from the system to this fifo, when the direction bit is 0, are transmitted by a hardware handshake to the peripheral using the ecp parallel port pr otocol. transfers to the fifo are byte aligned. data bytes from the peripheral are read under automatic hardwar e handshake from ecp into this fifo when the direction bit is 1. reads or dmas from the fi fo will return bytes of ecp data to the system. tfifo (test fifo mode) address offset = 400h mode = 110 data bytes may be read, written or dmaed to or from the system to this fifo in any direction. data in the tfifo will not be transmitt ed to the to the parallel port lines using a hardware pr otocol handshake. however, data in the tfifo may be di splayed on the parallel port data lines. the tfifo will not stall when overwritten or underrun. if an attempt is made to write data to a full tfifo, the new data is not accepted into the tfifo. if an attempt is made to read data from an empty tfifo, t he last data byte is re-read again. the full and empty bits must always keep track of t he correct fifo state. the tfifo will transfer data at the maximum isa rate so that softwar e may generate performance metrics. the fifo size and interrupt threshold can be determined by writing bytes to the fifo and checking the full and serviceintr bits. the writeintrthreshold can be determined by starting with a full tfifo, setti ng the direction bit to 0 and emptying it a byte at a time until serviceintr is set. this may generate a spurious interrupt, but will indicate that the threshold has been reached. the readintrthreshold can be determined by setting the direction bit to 1 and filling the empty tfifo a byte at a time until serviceintr is set. this may generate a spurious interrupt, but will indicate that the threshold has been reached. data bytes are always read from the head of tfifo regardless of the value of the directi on bit. for example if 44h, 33h, 22h is written to the fifo, then r eading the tfifo will return 44h, 33h, 22h in the same order as was written.
smsc ds ? FDC37N3869 page 82 rev. 10/25/2000 cnfga (configuration register a) address offset = 400h mode = 111 this register is a read only register. w hen read, 10h is returned. this indicate s to the system that this is an 8-bit implementation. (pword = 1 byte) cnfgb (configuration register b) address offset = 401h mode = 111 bit 7 compress this bit is read only. during a read it is a low leve l. this means that this ch ip does not support hardware rle compression. it does support hardware de-compression! bit 6 intrvalue returns the value on the isa irq li ne to determine possible conflicts. bits 2:0 dma software select the dma software select bits indicate the dma channel num ber that has been allocated to the parallel port. the channel encoding is shown in table 66. the dma software se lect bits shadow the ecp dma select bits in the ecp software select register cr22. table 66 - dma software select encoding dma selected dma software select (cnfgb) d2 d1 d0 3 0 1 1 2 0 1 0 1 0 0 1 other 0 0 0 bits 5:3 irq software select the irq software select bits indicate the irq channel number that has been allocated to the parallel port. the irq encoding is shown in table 67. the irq software select bi ts shadow the ecp irq select bits in the ecp software select register cr22. table 67 - irq software select encoding irq selected irq software select (cnfgb) d5 d4 d3 15 1 1 0 14 1 0 1 11 1 0 0 10 0 1 1 9 0 1 0 7 0 0 1 5 1 1 1 other 0 0 0
smsc ds ? FDC37N3869 page 83 rev. 10/25/2000 ecr (extended control register) address offset = 402h mode = all this register controls the extended ecp parallel port functions (table 69). bits 7,6,5 these bits are read/writ e and select the mode. bit 4 nerrintren read/write (valid only in ecp mode) 1: disables the interr upt generated on the asserting edge of nfault. 0: enables an interrupt pulse on the high to low edge of nfault. note that an in terrupt will be generated if nfault is asserted (interrupting) and this bit is wr itten from a ?1? to a ?0?. this prevent s interrupts from being lost in the time between the read of the ecr and the write of the ecr. bit 3 dmaen read/write 1: enables dma (dma starts when serviceintr is ?0?). 0: disables dma unconditionally. bit 2 serviceintr read/write 1: disables dma and all of the service interrupts. 0: enables one of the following 3 cases of interrupts. once one of the 3 service interrupts has occurred serviceintr bit shall be set to a ?1? by hardware, it must be reset to ?0? to re-enable the interrupts. writ ing this bit to a ?1? will not cause an interrupt. case dmaen=1: during dma (this bit is set to a ?1? when terminal count is reached). case dmaen=0 direction=0: this bit shall be set to ?1? whenever there are writ eintrthreshold or more bytes free in the fifo. case dmaen=0 direction=1: this bit shall be set to ?1? whenever there are readintrt hreshold or more valid bytes to be read from the fifo. bit 1 full read only 1: the fifo cannot accept another byte or the fifo is completely full. 0: the fifo has at least 1 free byte. bit 0 empty read only 1: the fifo is completely empty. 0: the fifo contains at least 1 byte of data.
smsc ds ? FDC37N3869 page 84 rev. 10/25/2000 table 68 - extended control register r/w mode 000: standard parallel port mode. in this mode the fifo is reset and common collector drivers are used on the control lines (nstrobe, nautofd, ninit and nselectin). setting the direction bit will not tri-state the output drivers in this mode. 001: ps/2 parallel port mode. same as above except that direction may be used to tri-state the data lines and reading the data regi ster returns the value on the data lines and not the value in the data register. all drivers have active pull-ups (push-pull). 010: parallel port fifo mode. this is the same as 000 except that bytes are written or dmaed to the fifo. fifo data is automatic ally transmitted using the standar d parallel port protocol. note that this mode is only useful when direction is 0. all drivers have active pull-ups (push-pull). 011: ecp parallel port mode. in the forward direction (direction is 0) bytes placed into the ecpdfifo and bytes written to the ecpafifo are placed in a single fifo and transmitted automatically to the peripheral using ecp protocol. in the revers e direction (direction is 1) bytes are moved from the ecp parallel port and packed into bytes in the ecpdfifo. all drivers have active pull-ups (push-pull). 100: selects epp mode: in this mode, epp is select ed if the epp supported option is selected in configuration register cr4. all driv ers have active pull-ups (push-pull). 101: reserved 110: test mode. in this mode t he fifo may be written and read, bu t the data will not be transmitted on the parallel port. all drivers have active pull-ups (push-pull). 111: configuration mode. in this mode the confga, confgb regist ers are accessible at 0x400 and 0x401. all drivers have active pull-ups (push-pull). operation mode switching/software control software will execute p1284 negotiation and all operation prior to a data transfer phase under programmed i/o control (mode 000 or 001). hardware pr ovides an automatic c ontrol line handshake, movi ng data between the fifo and the ecp port only in the data transfer phase (modes 011 or 010). setting the mode to 011 or 010 will cause t he hardware to initiate data transfer. if the port is in mode 000 or 001 it may sw itch to any other mode. if the port is not in mode 000 or 001 it can only be switched into mode 000 or 001. the di rection can only be changed in mode 001. once in an extended forward mode the software should wait fo r the fifo to be empty before switching back to mode 000 or 001. in this case all control signals will be deasse rted before the mode switch. in an ecp reverse mode the software waits for all the data to be read from the fi fo before changing back to m ode 000 or 001. since the automatic hardware ecp reverse handshake only cares about the state of the fifo it may have acquired extra data which will be discarded. it may in fact be in the middle of a transfer when the mode is changed back to 000 or 001. in this case the port will deassert nautof d independent of the stat e of the transfer. the desi gn shall not cause glitches on the handshake signals if the softwar e meets the constraints above. ecp operation prior to ecp operation the host must negotiate on the parallel port to determi ne if the peripheral supports the ecp protocol. this is a somewhat complex negotiation carried out under program control in mode 000. after negotiation, it is necessary to initialize some of the port bits. the following are required: set direction = 0, enabling the drivers. set strobe = 0, causing the nstrobe signal to default to the deasserted state. set autofd = 0, causing the nautofd si gnal to default to the deasserted state. set mode = 011 (ecp mode)
smsc ds ? FDC37N3869 page 85 rev. 10/25/2000 ecp address/rle bytes or data bytes may be sent automatically by wr iting the ecpafifo or ecpdfifo respectively. note that all fifo data transfers are byte wide and byte aligned. address/rle transfers are byte-wide and only allowed in the forward direction. the host may switch directions by first switching to mode = 001, negotiating for the forward or reverse channel, setting direction to 1 or 0, then setting mode = 011. when direction is 1 the hardware shall handshake for each ecp read data byte and attempt to fill the fifo. bytes may t hen be read from the ecpdfifo as long as it is not empty . ecp transfers may also be accomplished (albeit slowly) by handshaking individual bytes under program control in mode = 001, or 000. termination from ecp mode termination from ecp mode is similar to the termination fr om nibble/byte modes. the host is permitted to terminate from ecp mode only in specific well- defined states. the termination can only be executed while the bus is in the forward direction. to terminate while t he channel is in the reverse direction, it must first be transitioned into the forward direction. command/data ecp mode supports two advanced features to improve the effectiveness of the protocol for some applications. the features are implemented by allo wing the transfer of normal 8 bit data or 8-bit commands (table 70). when in the forward direction, normal data is transferred when hostack is hi gh and an 8 bit command is transferred when hostack is low. the most significant bit of the comm and indicates whether it is a run-lengt h count (for compression) or a channel address. when in the reverse direction, norma l data is transferred when periphack is high and an 8 bit command is transferred when periphack is low. the most significant bit of t he command is always zero. reverse channel addresses are seldom used and may not be supported in hardware. table 69 - forward channel commands (hostack low) reverse channel commands (peripack low) data compression d7 d[6:0] 0 run-length count (0-127) (mode 0011 0x00 only) 1 channel address (0-127) the FDC37N3869 supports run length encoded (rle) decompr ession in hardware and can transfer compressed data to a peripheral. run length encoded (rle) compression in hardware is not supported. to transfer compressed data in ecp mode, the compression count is written to the ec pafifo and the data byte is written to the ecpdfifo. compression is accomplished by counting identical bytes and transmitting an rle byte that indicates how many times the next byte is to be repeated. decompression simply intercepts the rle byte and r epeats the following byte the specified number of times. when a run-length count is received from a peripheral, the subsequent data byte is replicated the specified number of times. a run-length c ount of zero specifies that onl y one byte of data is represented by the next data byte, whereas a r un-length count of 127 indicates that the next byte should be expanded to 128 bytes. to prevent data expansion, however, run-length counts of ze ro should be avoided. pin definition the drivers for nstrobe, nautofd, ninit and nselectin are open-collector in mode 000 and are push-pull in all other modes. isa connections the interface can never stall causing the host to hang. the width of data transfers is st rictly controlled on an i/o address basis per this specific ation. all fifo-dma transfers are byte wide, byte aligned and end on a byte boundary. (the pword value can be obtained by reading configuration register a, cnfga, described in the next section). single byte wide transfers are always possible with standard or ps/2 mode using progr am control of the control signals.
smsc ds ? FDC37N3869 page 86 rev. 10/25/2000 interrupts the interrupts are enabled by serviceintr in the ecr register. serviceintr = 1 disables the dma and all of the service interrupts. serviceintr = 0enables the selected interrupt c ondition. if the interrupting conditi on is valid, then the interrupt is generated immediately when this bit is changed from a 1 to a 0. this can occur during programmed i/o if the number of bytes removed or added from/to the fifo does not cross the threshold. the interrupt generated is isa fri endly in that it must pulse t he interrupt line low, allowing for interrupt sharing. after a brief pulse low following the interrupt event, the interrupt line is tri-stated so that other interrupts may assert. an interrupt is generated when: 1) for dma transfers: when serviceintr is 0, dmaen is 1 and the dma tc is received. 2) for programmed i/o: a. when serviceintr is ?0?, dmaen is ?0?, direction is ?0? and t here are writeintrthreshold or more free bytes in the fifo. also, an interrupt is generated when serviceintr is cleared to ?0? whenever there are writeintrthreshold or more free bytes in the fifo. b(1) when serviceintr is 0, dmaen is 0, directi on is ?1? and there are readintrthr eshold or more bytes in the fifo. also, an interrupt is generated when serviceintr is cleared to ?0? whenev er there are readintr threshold or more bytes in the fifo. 3) when nerrintren is ?0? and nfault trans itions from high to low or when nerrintren is set from ?1? to ?0? and nfault is asserted. 4) when ackinten is ?1? and the nack signal transitions from a low to a high. fifo operation the fifo threshold is set in the chip configuration regist ers. all data transfers to or from the parallel port can proceed in dma or programmed i/o (non-dm a) mode as indicated by the sele cted mode. the fifo is used by selecting the parallel port fifo mode or ecp parallel po rt mode. (fifo test mode w ill be addressed separately.) after a reset, the fifo is disabled. each data byte is transferred by a programmed i/o cycle or pdrq depending on the selection of dma or programmed i/o mode. the following paragraphs detail t he operation of the fifo flow control. in these descr iptions, ranges from 1 to 16. the parameter fifothr, which the user programs, is one less and ranges from 0 to 15. a low threshold value (i.e. 2) results in longer periods of time between service requests, but requires faster servicing of the request for both read and write case s. the host must be very responsive to the service request. this is the desired case for use with a ?fast? system. a high value of threshold (i.e. 12) is used with a ?sluggish ? system by affording a long latency period after a service request, but results in more frequent service requests. dma transfers note: pdrq - currently selected parallel port drq channel npdack - currently selected parallel port dack channel pintr - currently selected parallel port irq channel typical dma mode transfers dma transfers are always to or from the ecpdfi fo, tfifo or cfifo. dma utiliz es the standard pc dma services. to use the dma transfers, the host first sets up the dire ction and state as in the pr ogrammed i/o case. then it programs the dma controller in the host with the desired count and memory address. lastly it sets dmaen to ?1? and serviceintr to ?0?. the ecp requests dma transfers from the host by activating the pdrq pin. the dma will empty or fill the fifo using the appropriate direction and mode. when the terminal count in the dma controller is reached, an interrupt is generated and servic eintr is asserted, disabling dma. in order to prevent possible blocking of refresh requests dreq shall not be asserted for more than 32 dma cycl es in a row. the fifo is enabled directly by asserting npdack and addresses need not be valid. pintr is generat ed when a tc is received. pdrq must not be asserted for more than 32 dma cycles in a row. after the 32 nd cycle, pdrq must be kept unasserted until npdack is deasserted for a minimum of 350nsec. (note: the only wa y to properly terminate dma transfers is with a tc). dma may be disabled in the middle of a transfer by first di sabling the host dma controller. then setting serviceintr to 1, followed by setting dmaen to 0, and wait ing for the fifo to become empty or full.
smsc ds ? FDC37N3869 page 87 rev. 10/25/2000 restarting the dma is accomplished by enab ling dma in the host, setting dmaen to 1, followed by setting serviceintr to 0. dma mode - transfers from the fifo to the host ( note: in the reverse mode, the peripheral may not continue to fill the fifo if it runs out of data to transfer, even if the chip continues to request more data from the peripheral). the ecp activates the pdrq pin whenev er there is data in the fifo. t he dma controller must respond to the request by reading data from the fifo. the ecp will deactivate the pdrq pi n when the fifo becomes empty or when the tc becomes true (qualified by npda ck), indicating that no more dat a is required. pdrq goes inactive after npdack goes active for the last byte of a data trans fer (or on the active edge of nior, on the last byte, if no edge is present on npdack). if pdrq goes inactive due to the fifo going em pty, then pdrq is active again as soon as there is one byte in the fifo. if pdrq goes inac tive due to the tc, then pdrq is active again when there is one byte in the fifo, and serviceintr has been re-enabled. (note: a data underrun may occur if pdrq is not removed in time to prevent an unwanted cycle). programmed i/o mode or non-dma mode the ecp or parallel port fifos may also be operated usi ng interrupt driven programmed i/o. software can determine the writeintrthreshold, readintrthreshold, and fifo depth by accessing the fifo in test mode. programmed i/o transfers are to the ecpdfifo at 400h and ec pafifo at 000h or from the ecpdfifo located at 400h, or to/from the tfifo at 400h. to use the programmed i/o transfers, the host first sets up the direction and state, sets dmaen to 0 and serviceintr to 0. the ecp requests programmed i/o transfers from the hos t by activating the pintr pin. the programmed i/o will empty or fill the fifo using t he appropriate direction and mode. note: a threshold of 16 is equivalent to a threshol d of 15. these two cases are treated the same. programmed i/o - transfers from the fifo to the host in the reverse direction an interrupt occurs when servicei ntr is 0 and readintrthreshol d bytes are available in the fifo. if at this time the fifo is full it can be em ptied completely in a single bur st, otherwise readintrthreshold bytes may be read from the fifo in a single burst. readintrthreshold =(16-) data bytes in fifo an interrupt is generated when serviceintr is 0 and the number of bytes in the fifo is greater than or equal to (16- ). (if the threshold = 12, then the interrupt is set whenever there are 4-16 bytes in the fifo.) the pint pin can be used for interrupt-driven systems. the host must re spond to the request by reading data from the fifo. this process is repeated until the last byte is transferred out of the fifo. if at this time the fifo is full, it can be completely emptied in a single burst, otherwise a minimum of (16-) bytes may be read from the fifo in a single burst. programmed i/o - transfers from the host to the fifo in the forward direction an interrupt occu rs when serviceintr is 0 and there are wr iteintrthreshold or more bytes free in the fifo. at this time if the fifo is empty it can be filled with a single burst before the em pty bit needs to be re-read. otherwise it may be filled with writeintrthreshold bytes. writeintrthreshold = (16-) free bytes in fifo an interrupt is generated when serviceintr is 0 and the number of bytes in the fifo is less than or equal to . (if the threshold = 12, then the interrupt is set whenever there are 12 or less bytes of data in the fifo.) the pint pin can be used for interrupt-d riven systems. the host must respond to the request by writing data to the fifo. if at this time the fifo is empty, it can be comp letely filled in a single burst, otherwise a minimum of (16- ) bytes may be written to the fifo in a singl e burst. this process is r epeated until the last byte is transferred into the fifo. auto power management
smsc ds ? FDC37N3869 page 88 rev. 10/25/2000 power management is provided for the following FDC37N3869 logical devices: floppy disk, uart1, uart2 and the parallel port. for each logical device two types of power management are provided; direct powerdown and auto powerdown. direct powerdown is controlled by the pow erdown bits in the confi guration registers. one bit is provided for each logical device. auto powerdown can be enabled for each logica l device by setting the auto powerdown enable bits in the configuration regi sters. in addition, a chip-level hardwar e powerdown function has been provided through the pwrgd pin. refer to table 1 and to other descripti ons of the pwrgd function, for example section configuration, for more information. fdc power management direct fdc power management is controlled by fdc power (bit 3) of configuration r egister 0 (see section cr00 on page 99). fdc auto power management is enabled by floppy disk enable (bit 7) in cr7 (see section cr07 on page 103). an internal timer is activated as soon as auto power management is enabled. during the timer countdown any operation involving the msr or the data register (fifo) will re-initialize the timer. in auto powerdown mode the fdc enters the powerdow n state when all of the following conditions have been met: 1) the motor enable pins of the do r register are inactive (zero). 2) the fdc is idle; msr=80h and int = 0 (int may be high even if msr = 80h due to polling interrupts). 3) the internal head unload timer has expired. 4) the 10msec auto powerdown timer has lapsed. disabling the fdc auto power management cancels the internal timer and pr events any of the above conditions from re-enabling the pow erdown state. note: at least 8us delay should be added when exi ting fdc auto powerdown mode. if the operating environment is such that this delay cannot be guaranteed, the auto powerdown mode should not be used and direct powerdown mode should be used instead. the direct powerdown mode requires at least 8us delay at 250k bits/sec configuration a nd 4us delay at 500k bits/sec. the delay should be added so that the internal microcontroller can prepare itself to accept commands. dsr from powerdown if dsr powerdown is used when the part is in auto powerdown, the dsr powerdow n will override the auto powerdown. however, when the part is awakened fr om dsr powerdown, the aut o powerdown will once again become effective. wake up from auto powerdown if the fdc enters the powerdow n state through the auto power down mode, wake up will occur after a reset or by access to the specific registers shown below. if a hardwar e or software reset is used the part will follow the normal reset sequence. if wake up occurs as a result of a ccess through selected register s the FDC37N3869 will resume normal operation as if the fdc had never powered-down. the following register accesses will wake up the fdc: 1) enabling any one of the motor enable bits in t he dor register (reading t he dor does not awaken the part). 2) a read from the msr register. 3) a read or write to the data register. once awake, the FDC37N3869 will rein itiate the auto powerdown timer for 10ms. the fdc will powerdown again when all of the powerdown conditions are met. register behavior table 70 reiterates the available fdc pc/at and ps/2, including model 30 mode, r egisters. in order to maintain software transparency, access to all the registers must be maintained regardless of the power state. as table 70 shows, two kinds of registers are i dentified based on whether access results in the fdc remaining in the powerdown state or not. registers that will not aw aken the fdc can be accessed during power down without changing the powerdown state but will reflect the true register status as shown in the fdc register description. for exam ple, a write to one of these registers will result in the fdc reta ining the data and subsequently using it appropriately when the block reawakens.
smsc ds ? FDC37N3869 page 89 rev. 10/25/2000 during powerdown accessing fdc regist ers that do not affect the power state may increase device power consumption, but only until the register acce ss has been completed. table 70 - available fdc pc/at and ps/2 registers available registers base + address pc-at ps/2 (model 30) access permitted access to these registers does not wake up the fdc 00h ---- sra r 01h ---- srb r 02h dor 1 dor 1 r/w 03h --- --- --- 04h dsr 1 dsr 1 w 06h --- --- --- 07h dir dir r 07h ccr ccr w access to these registers wakes up the fdc 04h msr msr r 05h data data r/w note 1 : writing to any of the motor enable bi ts in the dor or doing a software re set via the dor or dsr reset bits will wake up the fdc. writing to any other dor or dsr bits will not wake up the fdc. pin behavior the FDC37N3869 is specifically designed for portable pc syst ems where power conservation is a primary concern. consequently, the behavior of the device pins during powerdown very important. the pins of the FDC37N3869 fdc can be divided into two ma jor categories: system in terface and floppy disk drive interface. when the fdc is powered down, the floppy disk drive pins ar e disabled so that no power will be drawn through the part as a result of any volt age applied to the pin within the part?s pow er supply range. mo st of the system interface pins are left active to m onitor system accesses that are int ended to wake up the floppy controller. system interface pins table 71 gives the state of t he system interface pins in the powerdown st ate. pins unaffected by the powerdown are labeled ?unchanged?. input pins are ?dis abled? to prevent them from causi ng currents internal to the FDC37N3869 when they have indeterminate input values.
smsc ds ? FDC37N3869 page 90 rev. 10/25/2000 table 71 - state of system pins in auto powerdown system pins state in auto powerdown input pins ior unchanged iow unchanged a[0:9] unchanged d[0:7] unchanged reset unchanged ident unchanged dack unchanged tc unchanged output pins fintr unchanged (low) db[0:7] unchanged fdrq unchanged (low) fdd interface pins all pins in the fdd interfac e that can be connected directly to the floppy disk drive itself are either disabled or tristated. pins used for local logic control or part progr amming are unaffected. table 72 depicts the state of the floppy disk dr ive interface pins in the powerdown state. table 72 - state of fdc interface pins in powerdown fdd pins state in auto powerdown input pins rdata input wp input trk0 input indx input drv2 input dskchg input output pins moten[0:3] tristated ds[0:3} tristated dir active step active wrdata tristated we tristated hdsel active densel active drate[0:1] active
smsc ds ? FDC37N3869 page 91 rev. 10/25/2000 uart power management direct uart power management is contro lled by the uart1 and uart2 power down bits in configuration register 2. refer to section cr02 on page 100 for more information. uart auto power management is enabled by the uart 1 and ua rt 2 enable bits in conf iguration register 7 (see section cr07on page 103). when set, these bits enabl e the following auto power management features: 1) the transmitter enters auto power down when the transmit buffer and transmit shift register are empty. 2) the receiver enters powerdown when the following conditions are all met: receive fifo is empty the receiver is waiting for a start bit. note: while in the powerdown state, t he ring indicator interrupts are still valid and are activated when the ri inputs change. the uart transmitters exit the powerdow n state on a write to the xmit buffer. the uart receivers exit the auto powerdown state when rx dx changes state. parallel port direct parallel port power management is cont rolled by the parallel port power bit in configuration register 1. refer to section cr01 on page 99 for more information. parallel port auto power management is enabled by the paralle l port enable bit in conf iguration register 7 (see section cr07 on page 103). when set, this bit allows the ec p or epp logical parallel port blocks to be placed into the powerdown state as follows: the epp logic is in powerdown under any of the following conditions: 1) epp is not enabled in the configuration registers. 2) epp is not selected through ecr while in ecp mode. the ecp logic is in powerdown under any of the following conditions: 1) ecp is not enabled in the configuration registers. 2) spp, ps/2 parallel port or epp mode is selected through ecr while in ecp mode. the parallel port logic can change powerdown modes when the ecp mode is changed thr ough the ecr register or when the parallel port mode is changed th rough the configurat ion registers. serial irq introduction the FDC37N3869 provides a serial interrupt inte rface to the host. this scheme adheres to the serial irq specification for pci systems , version 6.0. the clk33, sirq, and nclkrun pins are required for this interface. the serial irq enable bit d7 in cr29 acti vates the serial interrupt interface. the irq/data serializer is a wired-or structure that simply passe s the state of one or more device irqs and/or data to the host controller. the transfer can be initiated by either a dev ice or the host. both high and low transitions are reported in this protocol. a transfer, called an irqser cycle, consists of three frame types: 1) one start frame 2) one or more irq/data frames 3) one stop frame the serial irq protocol uses the pci clock as its clock sour ce. the pci clock conforms to the pci bus electrical specification.
smsc ds ? FDC37N3869 page 92 rev. 10/25/2000 irqser cycle modes there are two modes of operation for irqser cycles: quie t (active) mode and continuous (idle) mode. in quiet mode any device may initiate an irqser cycle. in conti nuous mode only the host controlle r can initiate an irqser cycle (figure 4). following a system reset the sirq bus defaults to continuous mode. irqser cycle mode transitions can only occur during the stop frame ( figure 5). slaves must continuously sample the pulse width of the stop frame to determine the mode of the next irqser cycle (see the stop cy cle control section on page 94). figure 4 - start frame timing w/source sampled low pulse on irq1 notes: h=host control sl=slave control r=recovery t=turn-around s=sample 1) start frame pulse can be 4-8 clocks wide 2) pciclk = clk33 pin (33mhz pci clock input) 3) irqser = sirq pin figure 5 - stop frame timing w/ho st using 17 irqser sampling period notes: h=host control r=recovery t= turn-around s=sample i= idle 1) stop pulse is 2 clocks wide for quiet mode, 3 clocks wide for continuous mode. 2) there may be none, one or more id le states during the stop frame. 3) the next irqser cycle?s start frame pulse may or may not start immediately after the turn-around clock of the stop frame. 4) pciclk = clk33 pin (33mhz pci clock input) 5) irqser = sirq pin quiet (active) mode in quiet mode any device may initiate a start frame by dr iving the irqser low for one clock while the irqser is idle (figure 4). after driving low for one clock, slaves must immediately tristate irqser without at any time driving high. a start frame may not be initiated while the irqser is active. the irqser is idle between stop and start frames. the irqser is active between start and stop frames. qu iet mode operation allows the irqser to be idle when there are no irq/data transitions. rt s rt s irqser pciclk host controller irq1 irq1 drive source rt none irq0 frame irq1 frame s rt irq2 frame none start start frame h sl or h 1 s rt s irqser pciclk host controller irq15 driver rt none irq14 irq15 s rt iochck# none stop rt stop frame h i start next cycle 1 2 3 frame frame frame
smsc ds ? FDC37N3869 page 93 rev. 10/25/2000 once a start frame has been initiated, t he host controller will take over drivi ng the irqser low in the next clock and will continue driving the irqser low fo r a programmable period of three to seven clocks. this makes a total low pulse width of four to eight clocks. finally, the host controller will drive the irqser back high for one clock, then tri- state. any irqser device (e.g., the FDC37N3869) which detects any transition on an irq/data line for which it is responsible must initiate a start fr ame in order to update the host controlle r unless the irqser is already in an irqser cycle and the irq/data transition c an be delivered in that irqser cycle. continuous (idle) mode in continuous mode only the host controlle r can initiate a start frame to update irq/data line information. all other irqser agents become passive and may not in itiate a start frame. irqser st art frame will be driven low for four to eight clocks by the host controller. continuous mode has serves two purposes : it can be used to stop or idle t he irqser, or the host controller can operate irqser continuously by initiating a st art frame at the end of every stop frame. irqser irq/data frames once a start frame has been initiated, the FDC37N3869 will watch for the ri sing edge of the start pulse and start counting irq/data frames. each irq/data frame has three phases. each phase ta kes one pci clock: sample phase, recovery phase, and turn-around phase. during the sample phase the FDC37N3869 mu st drive the irqser (sir q pin) low if and only if the last detected irq/data value was lo w. if the last detected irq/data va lue was high irqser must be left tri- stated. during the recovery phase the FDC37N3869 must drive the sirq hi gh if and only if it had driven the irqser low during the previous sample phase. during the tu rn-around phase the fdc37n 3869 must tri-state sirq. the FDC37N3869 will drive the irqser line low at the appropriate sample point if its associated irq/data line is low, regardless of which device in itiated the start frame. the sample phase for each irq/data frame follows the low to high transition of the st art frame pulse by a number of clocks equal to the irq/data frame times th ree, minus one. for example, the irq5 sample phase occurs on 17th clock after the rising edge of the start pulse because ir q5 is the sixth irq/data frame ((6 x 3) - 1 = 17). table 73 - irqser sampling periods irqser period signal sampled # of clocks past start 1 not used 2 2 irq1 5 3 irq2 8 4 irq3 11 5 irq4 14 6 irq5 17 7 irq6 20 8 irq7 23 9 irq8 26 10 irq9 29 11 irq10 32 12 irq11 35 13 irq12 38 14 irq13 41 15 irq14 44 16 irq15 47
smsc ds ? FDC37N3869 page 94 rev. 10/25/2000 the irqser irq/data frame will supports irq2 from a logi cal device. previously, irqser period 3 was reserved for use by the system management interrupt (nsmi). w hen using period 3 for irq2 the user should mask off the smi via the smi enable register. likewise, when using peri od 3 for nsmi the user shoul d not configure any logical devices as using irq2. note: there is no smi support in the FDC37N3869. stop cycle control once all irq/data frames have complet ed, the host controller will terminate ir qser activity by initiating a stop frame. only the host controlle r can initiate the stop frame. a stop frame is indicated when the irqser is low for two or three clocks. if the stop frame is low for two clocks the next irqser cycle operates in the quiet mode and any irq ser device may initiate a start frame in the second clock or more after the rising edge of the stop frame pul se. if the stop frame is low for three clocks the next irqser cycle operates in continuous mode and only the host controller may init iate a start frame in the second clock or more after the rising edge of the stop frame pulse. latency latency for irq/data updates over the ir qser bus in bridge-less systems with the minimum irq/data frames of seventeen will range up to 96 clocks (3.84us with a 25m hz pci bus or 2.88us with a 33mhz pci bus). if one or more pci to pci bridges are added to a system, the latency for irq/data updat es from the secondary or tertiary buses will be a few clocks longer for synchr onous buses, and approximately double for asynchronous buses. eoi/isr read latency any serialized irq scheme has a potential implementation issue related to irq la tency. irq latency could cause an eoi or isr read to precede an irq transition that it s hould have followed. this could cause a system fault. the host controller is responsible for ensuring that these latency issues are mitigated. the recommended solution is to delay eois and isr reads to the interrupt controller by the same amount as the irqser cycle latency in order to ensure that these events do not occur out of order. ac/dc specification issue all irqser agents must drive/sample ir qser synchronously relative to the ri sing edge of the pci bus clock. the irqser (sirq) pin uses the elec trical specification of pci bus. reset and initialization the irqser bus uses reset_drv as its reset signal. the irqser pin is tri-stated by all agents while reset_drv is active. following reset, irqser slaves are put into continuous (idle) m ode. the host controller is responsible for starting the initial irqser cycle to collect the system?s irq/data default values. the system then follows with the continuous/quiet mode pr otocol as determined by the stop frame pulse width for subsequent irqser cycles. it is the re sponsibility of the host controller to provide the default values to 8259?s and other system logic before the fi rst irqser cycle is performed. for irqser system suspend, insertion, or removal application, the host contro ller should be programmed in continuous (idle) mode first. this is to guarantee that the irq ser bus is in the idle state before the system configuration changes. add pci nclkrun support overview the FDC37N3869 supports the pci nclkrun signal. nclkrun is used to indicate the pci clock status as well as to request that a stopped clock be started. see figure 6 for an example of a typical system implementation using nclkrun. nclkrun support is required because the FDC37N3869 interrupt interface relies entirely on serial irqs. if an sio interrupt occurs while the pci clock is stopped, nclkrun must be asserted before the in terrupt can be serviced. if the FDC37N3869 sirq_en signal is inactive, nclkrun support is also disabled. the FDC37N3869 nclkrun signal is multiplexed with nadrx on tqfp pin number 92. see configuration register cr03 for a description of the tqfp pin 92 multiplex controls.
smsc ds ? FDC37N3869 page 95 rev. 10/25/2000 nclkrun is an open drain output and an input. refer to the pci mobile design guide rev 1.0 for a description of the nclkrun function. using nclkrun if nclkrun is sampled ?high?, the pci clock is stopped or st opping. if nclkrun is sampled ?low?, the pci clock is starting or started (running). if a device in the FDC37N3869 asserts or de-asserts an interrupt and nclkrun is sample ?high?, the FDC37N3869 can r equest the restoration of the clo ck by asserting the nclkrun signal asynchronously table 74). the FDC37N3869 holds nclkrun low until it detects two rising edges of the clock. after the second clock edge, the FDC37N3869 must di sable the open drain driver (figure 7). the FDC37N3869 will not assert nclkrun under any conditions if sirq_en is inac tive (?0?). the sirq_en bit is d7 in cr29. the FDC37N3869 must not assert nclkrun if it is already driven low by the c entral resource; i.e., the pci clock generator in figure 6. the fdc 37n3869 must not assert nclkrun unle ss the line has been deasserted for two successive clocks; i.e., before the clock was stopped (figure 7). table 74 - FDC37N3869 nclkrun function sirq_en internal (parallel) interrupts nclkrun action 1 x x none no change x none change 1 0 none 0 1 assert nclkrun note 1 : ?change? means either-edge change on any or all parallel irqs routed to the sirq block. the ?change? detection logic must run asynchronously to the pci clock and regardless of the sirq mode; i.e., ?continuous? or ?quiet?. figure 6 - nclkrun system implementation example pci clock generator (central resource) master target fdc37n869 nclkrun pciclk
smsc ds ? FDC37N3869 page 96 rev. 10/25/2000 figure 7 - clock start illustration note 1: the signal ?any irq change? is the same as ?change? in table 72. note 2: the FDC37N3869 must continually monitor the state of nclkrun to maintain the pci clock until an active ?any irq change? condition has been transferred to the host in a serial irq cycle. for example, if ?any irq change? is asserted before nclk run is de-asserted (not shown in figure 7), the FDC37N3869 must a ssert nclkrun as needed until the serial irq cycle has completed. configuration the configuration of the FDC37N3869 is programmed through hardware sele ctable configuration access ports that appear when the chip is placed into the configuration state. the FDC37N3869 logical devic e blocks, if enabled, will operate normally in the c onfiguration state. configuration access ports the configuration access ports are the config port, the index port, and the data port (table 75). the base address of these register s is controlled by the nrts2/sysopt pin (s ee table 1) and by the configuration port base address registers cr12 and cr13. to determine the configur ation base address at powe r-up, the state of the nrts2/sysopt pin is latched by the falli ng edge of a hardware reset. if the latc hed state is a 0, the base address of the configuration access ports is locat ed at address 3f0h; if the latched state is a 1, the base address is located at address 370h. table 75 - configuration access ports port name sysopt = 0 sysopt = 1 type config port 0x3f0 0x370 write index port 0x3f0 0x370 read/write 1,2 data port index port + 1 read/write 1 note 1 : the index and data ports are active only when the FDC37N3869 is in the configuration state. note 2 : the index port is only readable in the configur ation state. configuration state the configuration register s are used to select programmable chip options. the FDC37N3869 operates in two possible states: the run st ate and the configuration st ate. after power up by default the ch ip is in the run state. to program the configuration registers, the configurat ion state must be explicit ly enabled. programming the configuration registers typi cally follows this sequence: 1) enter the conf iguration state, 2) program the confi guration register(s), 3) exit the conf iguration state. entering the configuration state to enter the configuration st ate write the configur ation access key to the config po rt. the configuration access key is one byte of 55h data. the f dc37n3869 will automatically activate t he configuration access ports following this procedure. clk33 nclkrun sirq_en any irq change 1,2 nclkrun driven by 869 869 stops driving nclkrun 2 clks min.
smsc ds ? FDC37N3869 page 97 rev. 10/25/2000 configuration register programming the FDC37N3869 contains conf iguration registers cr00-cr2f. after the FDC37N3869 enters the configuration state, configuration r egisters can be programmed by first writing t he register index number (00 - 2fh) to the configuration select register (csr) through the index port and t hen writing or reading the configuration register contents through the data port. conf iguration register access remains enabl ed until the configur ation state is explicitly exited. exiting the configuration state to exit the configurati on state, write one byte of aah data to the config port. the FDC37N3869 will automatically deactivate the c onfiguration access ports following this procedur e, at which point c onfiguration register access cannot occur until the configurat ion state is explicitly re-enabled. programming example the following is a configuration register programming example wri tten in intel 8086 assembly language. ;-----------------------------. ; enter configuration state | ;-----------------------------? mov dx,3f0h ;sysopt = 0 mov ax,055h out dx,al ;-----------------------------. ; configure registers cr0-crx | ;-----------------------------? mov dx,3f0h mov al,00h out dx,al ;point to cr0 mov dx,3f1h mov al,3fh out dx,al ;update cr0 ; mov dx,3f0h mov al,01h out dx,al ;point to cr1 mov dx,3f1h mov al,9fh out dx,al ;update cr1 ; ; repeat for all crx registers ; ;-----------------------------. ; exit configuration state | ;-----------------------------? mov dx,3f0h mov ax,aah out dx,al configuration select register (csr) the configuration select register c an only be accessed when the FDC37N3869 is in the configurat ion state. the csr is located at the inde x port address and must be initialized with configuration regist er index before the register can be accessed using the data port.
smsc ds ? FDC37N3869 page 98 rev. 10/25/2000 configuration registers description the configuration registers are set to their default values at power up (t able 76) and are not affected by reset, except where noted in the regi ster descriptions that follow. table 76 - configuration registers default index db7 db6 db5 db4 db3 db2 db1 db0 28h cr00 valid reserved fdc pwr reserved reserved 9ch cr01 lock crx reserved pp mode pp pwr reserved 88h cr02 uart2 pwr reserved uart1 pwr reserved 70h cr03 adrx/ nclkru n ident mfm drv den 1 reserved adrx/ nclkrun enhanced fdc mode 2 pwrgd/ gamecs 00h cr04 reserve d epp type midi 2 midi 1 parallel port fdc pp ext. modes 00h cr05 reserved den sel fdc dma mode fdc output type control ffh cr06 fdd3 - id fdd2 - id fdd1 - id fdd0 - id 00h cr07 auto power management reserved floppy boot drive 00h cr08 adra7 arda6 adra5 adra4 0 0 0 0 00h cr09 adrx config cntrl res erved adra11 adra10 adra9 adra8 00h cr0a ir output mux reserved ecp fifo threshold 00h cr0b fdd3-drtx fdd2- drtx fdd1-drtx fdd0-drtx 02h cr0c uart 2 speed uart 1 speed uart 2 mode uart 2 duplex uart 2 xmit polarity uart 2 rcv polarity 29h cr0d device id revision cr0e device revision 00h cr0f test 7 test 6 test 5 test 4 test 3 test 2 test 1 test 0 00h cr10 test 15 test 14 test 13 test 12 test 11 test 10 test 9 test 8 80h cr11 test 23 test 22 test 21 test 20 test 19 test 18 test 17 test 16 note 1 cr12 configuration ports base address [7:1] 0 note 1 cr13 configuration ports base address [10:8] - cr14 floppy data rate select shadow - cr15 uart1 fifo control shadow - cr16 uart2 fifo control shadow 03h cr17 force fdd status change 00h cr18 - cr1d reserved 80h cr1e gamecs - adr[9:4] gamecs config 00h cr1f fdd3-dtx fdd2-dtx fdd1-dtx fdd0-dtx 3ch cr20 fdc - adr[9:4] 0 0 00h cr21 reserved 00h cr22 reserved parallel port ecp irq select parallel port ecp dma select 00h cr23 parallel port - adr[9:2] 00h cr24 serial port 1 - adr[9:3] 0 00h cr25 serial port 2 - adr[9:3] 0 00h cr26 fdc dma select parallel port dma select 00h cr27 fdc irq select parallel port irq select 00h cr28 serial port 1 irq sele ct serial port 2 irq select 00h cr29 sirq_en reserved hpmode irqin irq select 00h cr2a reserved
smsc ds ? FDC37N3869 page 99 rev. 10/25/2000 default index db7 db6 db5 db4 db3 db2 db1 db0 00h cr2b fir base i/o addr[10:3] 0fh cr2c reserved serial port 2 dma select 03h cr2d ir half duplex time-out 00h cr2e software select a 00h cr2f software select b note 1 : refer to sections cr12 - cr13 on page 106. cr00 cr00 can only be accessed in the confi guration state and after the csr has been initialized to 00h. the default value of this register after power up is 28h (table 77). table 77 - cr00 bit no. bit name description 0:2 reserved read only. a read returns 0 3 fdc power 1 a high level on this bit, supplies power to the fdc (default). a low level on this bit puts the fdc in low power mode. 4,5,6 reserved read only. a read returns bit 5 as a 1 and bits 4 and 6 as a 0. 7 valid a high level on this software c ontrolled bit can be used to indicate that a valid configuration cycle has occurred. the control software must take care to set th is bit at the appropriate times. set to zero after power up. this bit has no e ffect on any other hardware in the chip. note 1 : power down bits disable the respective logical device and associated pins, however the power down bit does not disable the selected address r ange for the logical device. to di sable the host address registers the logical device?s base address must be set below 100h. devices that are powered down but still reside at a valid i/o base address will participate in plug-and-play range checking. cr01 cr01 can only be accessed in the conf iguration state and after the csr has been initialized to 01h. the default value of this register after power up is 9ch (table 78). table 78 - cr01 bit no. bit name description 0,1 reserved read only. a read returns ?0?. 2 parallel port power 1 a high level on this bit, supplies powe r to the parallel port (default). a low level on this bit puts the parallel port in low power mode. 3 parallel port mode parallel port mode. a high level on th is bit, sets the parallel port for printer mode (default). a low level on this bit enables the extended parallel port modes. refer to bits 0 and 1 of cr4 4 reserved read only. a read returns ?1?. 5,6 reserved read only. a read returns ?0?. 7 lock crx a high level on this bit enables the reading and writing of cr00 - cr2f (default). a low level on this bit disables the reading and writing of cr00 - cr2f. note: once the lock crx bit is set to ?0?, this bit can only be set to ?1? by a hard reset or power-up reset. note 1 : power down bits disable the respective logical device and associated pins, however the power down bit does not disable the selected address r ange for the logical device. to di sable the host address registers the logical device?s base address must be set below 100h. devices that are powered down but still reside at a valid i/o base address will participate in plug-and-play range checking.
smsc ds ? FDC37N3869 page 100 rev. 10/25/2000 cr02 cr02 can only be accessed in the conf iguration state and after the csr has been initialized to 02h. the default value of this register after power up is 88h (table 79). table 79 - cr02 bit no. bit name description 0:2 reserved read only. a read returns ?0?. 3 uart1 power down 1 a high level on this bit, allows normal operation of the primary serial port (default). a low level on this bit places the primary serial port into power down mode. 4:6 reserved read only. a read returns ?0?. 7 uart2 power down 1 a high level on this bit, allows normal operation of the secondary serial port, including the sce/fir block (default). a low level on this bit places the secondary serial port including the sce/fir block into power down mode. note 1 : power down bits disable the respective logical device and associated pins, however the power down bit does not disable the selected address r ange for the logical device. to di sable the host address registers the logical device?s base address must be set below 100h. devices that are powered down but still reside at a valid i/o base address will participate in plug-and-play range checking. cr03 cr03 can only be accessed in the conf iguration state and after the csr has been initialized to 03h. the default value after power up is 70h (table 80). table 80 - cr03 bit no. bit name description 0 pwrgd/ gamecs bit 0 pin function 0 pwrgd (default) 1 gamecs 1 enhanced floppy mode 2 bit 1 floppy mode - refer to the description of the tape drive register (tdr) for more information on these modes. 0 normal floppy mode (default) 1 enhanced floppy mode 2 (os2) 3 reserved reserved - read as zero 4 drvden1 bit 4 pin drvden1 output 1 0 output programmed drvden1 value 1 force drvden1 output high (default) 5 mfm ident is used in conjunction with mfm to define the fdc interface mode. 6 ident ident 1 1 0 0 mfm 1 0 1 0 mode at mode (default) reserved ps/2 model 30 7,2 nadrx/nclkrun bit - 7 bit - 2 pin 92 (tqfp) 0 x reserved 2 1 0 nadrx 1 1 nclkrun note 1 : see note 2 in section cr05 on page 102. note 2 : pin 92 (tqfp) is tri-stated at power-up.
smsc ds ? FDC37N3869 page 101 rev. 10/25/2000 cr04 cr04 can only be accessed in the conf iguration state and after the csr has been initialized to 04h. the default value after power up is 00h (table 81). table 81 - cr04: parallel and serial extended setup register bit no. bit name description 1,0 parallel port bit 1 bit 0 if cr1 bit 3 is a low level then: extended modes 0 0 standard and bi-directiona l modes (spp) (default) 0 1 epp mode and spp 1 0 ecp mode 2 1 1 ecp mode & epp mode 1,2 2,3 parallel port fdc refer to parallel port floppy disk controller description. bit 3 bit 2 0 0 normal 0 1 ppfd1 1 0 ppfd2 1 1 reserved 4 midi 1 3 serial clock select port 1: a low level on this bit, disables midi support, clock = divide by 13 (default). a high level on this bit enables midi support, clock = divide by 12. 5 midi 2 3 serial clock select port 2: a low level on this bit, disables midi support, clock = divide by 13 (default). a high level on this bit enables midi support, clock = divide by 12. 6 epp type 0 = epp 1.9 (default) 1 = epp 1.7 7 reserved 4 reserved - read as 0. note 1 : in this mode, epp can be selected through the ecr register of ecp as mode 100. note 2 : in these modes, 2 drives can be suppor ted directly, 3 or 4 drives must us e external 4 drive support. spp can be selected through the ecr regist er of ecp as mode 000. note 3 : midi support: the musical instrumental digital interf ace (midi) operates at 31.25k baud (+/-1%) which can be derived from 125khz. (24 mhz/12=2 mhz, 2 mhz/16=125 khz). note 4 : the function of this bit has been modi fied from the fdc37c669. this bit? s former function, the selection of the pins for ir receive and transmit, has been moved to cr0a.
smsc ds ? FDC37N3869 page 102 rev. 10/25/2000 cr05 cr05 can only be accessed in the conf iguration state and after the csr has been initialized to 05h. the default value after power up is 00h (table 82). table 82 - cr05: floppy disk setup register bit no. bit name description 0 1 fdc output type control (r/w) 0 = fdc outputs are open drain (default). 1 = fdc outputs are push-pull. 1 1,2 fdc output control (r/w) 0 = fdc outputs active (default). 1 = fdc outputs tri-state. 2 fdc dma mode 0 = burst mode is enabled for the fdc fifo execution phase data transfers (default). 1 = non-burst mode enabled. the fdrq and firq pins are strobed once for each byte transferred while the fifo is enabled. 4,3 densel bit 4 bit 3 densel output 0 0 normal (default) 0 1 reserved 1 0 1 1 1 0 5-7 reserved read only. a read returns 0. note 1 : bits cr05[1:0] do not affe ct the parallel port fdc. note 2 : in the FDC37N3869, the behavior of the drvden1 control cr03.4 depends upon the fdc output control cr05.1 (table 82). if the fdc output control is active drvden1 w ill behave as described in the 669fr; i.e., if cr03.4 is 0 the drvden1 out put pin assumes the value of the drv den1 function, if cr03.4 is 1 the drvden1 output pin stays high. if the fdc output control is inacti ve the drvden1 control will have no affect on the drvden1 output pin. table 83 - drvden1 control fdc output control drvden1 control drvden1 description (cr05.1) (cr03.4) (pin 18) 0 0 1/0 normal drvden1 function 0 1 1 drvden1 forced high 1 x tristate all fdd output pins are tristated cr06 cr06 can only be accessed in the conf iguration state and after the csr has been initialized to 06h. the default value of this register after power up is ffh (table 84). cr06 holds the floppy disk drive type ids for up to four floppy disk drives (see section drive type id, bits 4 - 5 on page 25). table 84 - dr06: drive type id register fdd3 fdd2 fdd1 fdd0 d7 d6 d5 d4 d3 d2 d1 d0 id31 id30 id21 id20 id11 id10 id01 id00
smsc ds ? FDC37N3869 page 103 rev. 10/25/2000 cr07 cr07 can only be accessed in the conf iguration state and after the csr has been initialized to 07h. the default value of this register after power up is 00h (table 85). cr07 controls auto power management and the floppy boot drive. table 85 - cr07: auto power management and boot drive select bit no. bit name description 0,1 floppy boot this bit is used to define the boot floppy. 0 = drive a (default) 1 = drive b 2 reserved read as 0. 3 reserved read as 0. 4 parallel port enable this bit controls the autopower do wn feature of the parallel port. the function is: 0 = auto powerdown disabled (default) 1 = auto powerdown enabled this bit is reset to the default state by por or a hardware reset. 5 uart 2 enable this bit controls the au topower down feature of the uart2. the function is: 0 = auto powerdown disabled (default) 1 = auto powerdown enabled this bit is reset to the default state by por or a hardware reset. 6 uart 1 enable this bit controls the au topower down featur e of the uart1. the function is: 0 = auto powerdown disabled (default) 1 = auto powerdown enabled this bit is reset to the default state by por or a hardware reset. 7 floppy disk enable this bit controls the autopower do wn feature of the floppy disk. the function is: 0 = auto powerdown disabled (default) 1 = auto powerdown enabled (see note in the ?fdc power management? section) this bit is reset to the default state by por or a hardware reset. cr08 cr08 can only be accessed in the conf iguration state and after the csr has been initialized to 08h. the default value of this register after power up is 00h (table 86). cr08 contains the lower 4 bi ts (adra7:4) for the adrx address decoder. bits d0 - d3 are reserved. re served bits cannot be written and return 0 when read. table 86 - cr08: adrx lower address decode d7 d6 d5 d4 d3 d2 d1 d0 adra7 adra6 adra5 adra4 reserved cr09 cr09 can only be accessed in the conf iguration state and after the csr has been initialized to 09h. the default value of this register after power up is 00h (table 87). cr09 contains the upper 4 bi ts (adra11:8) of the adrx address decoder and the adrx confi guration control bits d[7:6]. the adrx configuration control bits configure the adrx address decoder ( table 88). to activate the FDC37N3869 nadrx output, the system addr ess bus bits a11 to a4 must match the values programmed in cr08 and cr09 and address bits a12 to a15 must be ?0000b?.
smsc ds ? FDC37N3869 page 104 rev. 10/25/2000 table 87 - cr09: adrx upper address decoder and configuration d7 d6 d5 d4 d3 d2 d1 d0 adrx configuration control reserved adra11 adra10 adra9 adra8 table 88 - adrx configuration bits adrx configuration control description d7 d6 0 0 adrx disabled 0 1 1 byte decode a[3:0]=0000b 1 0 8 byte block decode a[3:0]=0xxxb 1 1 16 byte block decode a[3:0]=xxxxb cr0a cr0a can only be accessed in the confi guration state and after the csr has been initialized to 0ah. the default value of this register after power up is 00h (table 88). cr0a defines the fifo threshold for the ecp mode parallel port. bits d[5:4] are reserved. rese rved bits cannot be written and return 0 when read. bits d[ 7:6] are the ir output mux bits (table 89) and are reset to t he default state by a por or a hardware reset. table 89 - cr0a d7 d6 d5 d4 d3 d2 d1 d0 ecp fifo threshold ir output mux (see table 90) reserved thr3 thr2 thr1 thr0 table 90 - cr0a: ir output mux bits d7 d6 mux mode 0 0 active device to com port (default). that is, use pins irrx and irtx (pins 88 and 89). 0 1 active device to ir port. that is , use irrx2, irtx2 (pins 23, 24). 1 0 reserved. 1 1 outputs inactive: irtx and irtx2 are high-z. note: the function of the ir output mux bits and how t hey are reset has been modified from the fdc37c669. the first two options were previously selected through cr04. cr0b cr0b can only be accessed in the confi guration state and after the csr has been initialized to 0bh. the default value of this register after power up is 00h (table 91). cr0b indicates the drive rate table used for each drive (see table 20). refer to section cr1f on page 108 for the drive type register. table 91 - cr0b fdd3 fdd2 fdd1 fdd0 d7 d6 d5 d4 d3 d2 d1 d0 drt1 drt0 drt1 drt0 drt1 drt0 drt1 drt0
smsc ds ? FDC37N3869 page 105 rev. 10/25/2000 cr0c cr0c can only be accessed in the confi guration state and after the csr has been initialized to 0ch. the default value of this register after power up is 02h (table 92). cr0 c controls the operating mode of the uart. this register is reset to the default state by a por or a hardware reset. table 92 - cr0c bit no. bit name description 0 uart 2 rcv polarity 0 = rx input active high (default). 1 = rx input active low. 1 uart 2 xmit polarity 0 = tx output active high. 1 = tx output active low (default). 2 uart 2 duplex this bit is us ed to define the full/half duplex operation of uart 2. 1 = half duplex 0 = full duplex (default) 3, 4, 5 uart 2 mode uart 2 mode 5 4 3 0 0 0 standard (default) 0 0 1 irda (hpsir) 0 1 0 amplitude shift keyed ir @ 500khz 0 1 1 reserved 1 x x reserved 6 uart 1 speed this bit enables the high speed mode of uart 1. 1 = high speed enabled 0 = standard (default) 7 uart speed this bit enables the high speed mode of uart 2. 1 = high speed enabled 0 = standard (default) cr0d cr0d can only be accessed in the configur ation state and after the csr has been init ialized to 0dh. this register is read only. cr0d contains the FDC37N3869 device id. the default value of this register after power up is 29h. cr0e cr0e can only be accessed in the configur ation state and after the csr has been init ialized to 0eh. this register is read only. cr0e contains the current fdc 37n3869 chip revision level starting at 00h. cr0f cr0f can only be accessed in the confi guration state and after the csr has been initialized to 0fh. the default value of this register after power up is 00h (table 93). cr0 f is a test control register and all bits must be treated as reserved. note: all test modes are reserved for smsc use. activating test mode registers may produce undesired results. table 93 - cr0f bit no. bit name description 0 test 0 1 test 1 2 test 2 3 test 3 reserved for smsc use 4 test 4 5 test 5 6 test 6 7 test 7
smsc ds ? FDC37N3869 page 106 rev. 10/25/2000 cr10 cr10 can only be accessed in the conf iguration state and after the csr has been initialized to 10h. the default value of this register after power up is 00h (table 94). cr 10 is a test control register and all bits must be treated as reserved. note: all test modes are reserved for smsc use. activating test mode registers may produce undesired results. table 94 - cr10 bit no. bit name description 0 test 8 1 test 9 2 test 10 3 test 11 reserved for smsc use 4 test 12 5 test 13 6 test 14 7 test 15 cr11 cr11 can only be accessed in the conf iguration state and after the csr has been initialized to 11h. the default value of this register after power up is 80h (table 95). cr 11 is a test control register and all bits must be treated as reserved. note: all test modes are reserved for smsc use. activating test mode registers may produce undesired results. table 95 - cr11 bit no. bit name description 0 test 16 1 test 17 2 test 18 3 test 19 reserved for smsc use 4 test 20 5 test 21 6 test 22 7 test 23 cr12 - cr13 cr12 and cr13 are the FDC37N3869 configur ation ports base address registers (t able 96). these registers are used to relocate the configurati on ports base address beyond the power-up defaults determined by the sysop pin programming. cr12 contains the configurat ion ports base address bits a[7:0]. cr13 contains the confi guration ports base address bits a[10:8]. the configuration ports base address is reloca table on even-byte boundaries; i.e., a0 = ?0?. at power-up the configurati on ports base address is determined by the syso p pin programming. to relocate the configuration ports base address after power-up, first writ e the lower address bits of the new base address to cr12 and then write the upper address bits to cr13. note: writing cr13 changes the confi guration ports base address.
smsc ds ? FDC37N3869 page 107 rev. 10/25/2000 table 96 - configuration ports base address registers index r/w hard reset vcc por configuration ports base address registers d7 d6 d5 d4 d3 d2 d1 d0 0x12 2 r/w sysop=0: 0xf0 sysop=1: 0x70 sysop=0: 0xf0 sysop=1: 0x70 a7 a6 a5 a4 a3 a 2 a1 ?0? 0x13 1 r/w sysop=0: 0 x 03 sysop=1: 0x03 sysop=0: 0x03 sysop=1: 0x03 ?0? ?0? ?0? ?0? ?0? a10 a 9 a 8 note 1 : writing cr13 changes the confi guration ports base address. note 2 : the configuration ports base address is relo catable on even-byte boundaries; i.e., a0 = ?0?. cr14 cr14 can only be accessed in the conf iguration state and after the csr has been initialized to 14h. cr14 shadows the bits in the write-only fdc r un-time dsr register (table 97). table 97 - cr14: dsr shadow register d7 d6 d5 d4 d3 d2 d1 d0 default cr 14 r soft reset pwr down res. pre- comp 2 pre- comp 1 pre- comp 0 data rate select 1 data rate selec t 0 n/a cr15 cr15 can only be accessed in the conf iguration state and after the csr has been initialized to 15h. cr15 shadows the bits in the write-only uart1 run-time fcr register (table 98). table 98 - cr15: uart1 fcr shadow register d7 d6 d5 d4 d3 d2 d1 d0 default cr15 r rcvr trigger msb rcvr trigge r lsb reserved dma mode select xmit fifo rese t rcvr fifo rese t fifo enabl e n/a cr16 cr161 can only be accessed in the conf iguration state and after the csr has been initialized to 16h. cr16 shadows the bits in the write-only uart2 run-time fcr register (table 99). table 99 - cr16: uart2 fcr shadow register d7 d6 d5 d4 d3 d2 d1 d0 default cr16 r rcvr trigge r msb rcvr trigge r lsb reserved dma mode select xmit fifo reset rcvr fifo reset fifo enable n/a cr17 cr17 can only be accessed in the conf iguration state and after the csr has been initialized to 17h. the default value of this register after power up is 003h (table 100). cr17 is the force fdd status change register. table 100 - cr17: force fdd status change register d7 d6 d5 d4 d3 d2 d1 d0 default cr 17 r/w reserved reserve d force wrtprt force dskchg1 force dskchg0 0x03 note: the controls in the force fdd status change register (cr17) apply to the f dd interface pins as well as to the parallel port fdc. force disk change, bits 0 - 1
smsc ds ? FDC37N3869 page 108 rev. 10/25/2000 setting either of the force disk change bits active (1) fo rces the fdd ndskchg input active when the appropriate drive has been selected. force dsk chg1 and force dskchg0 can be written to a 1 but are not clearable by software. force dskchg1 is cleared on (nstep a nd nds1), force dskchg0 is cleared on (nstep and nds0). note: the dsk chg bit in the floppy dir regi ster, bit 7 = (nds0 and force dskchg0) or (nds1 and force dskchg1) or ndskchg. force write protect, bit 2 force wrtprt asserts the internal nwrtprt input to t he controller when the force wrtprt bit is active (?1?) and a drive has been selected. the force wrtprt function applies to the nwrtprt pin in the fdd interface as well as the nwrtprt pin in the parallel port fdc. cr18 - cr1d cr18 - cr1d registers are reserved. reserved registers cannot be written and return 0 when read. the default value of these registers after power up is 00h. cr1e cr1e register can only be accessed in the configuration state and after the csr has been initialized to 1eh. the default value of this register after power up is 80h (table 101). cr1e is used to select the base address of the game chip select decoder (gamecs). the gamecs can be set to 48 locations on 16 byte boundaries from 100h-3f0h. to disable the gamecs, set db1 and db0 to zero (table 102). table 101 - cr1e db7 db6 db5 db4 db3 db2 db1 db0 adr9 adr8 adr7 adr6 adr5 adr4 gamecs config (see table 100) table 102 - gamecs configuration bits gamecs configuration description db1 db0 0 0 gamecs disabled 0 1 1 byte decode, adr[3:0] = 0001b 1 0 8 byte block decode, adr[3:0] = 0xxxb 1 1 16 byte block decode, adr[3:0] = xxxxb upper address decode requirements: ncs=?0? and a 10=?0? are required to qualify the gamecs output. cr03.0, the pwrgd/gamecs control bit, overrides the selection made by the gamecs configuration bits. cr1f cr1f can only be accessed in the configur ation state and after the csr has been in itialized to 1fh. the default value of this register after power up is 00h (table 103). cr1f indicates the floppy disk drive type for each of four floppy disk drives. the floppy disk drive type is used to map the three fdc densel, drate1 and drate0 outputs onto two super i/o output pins drvden1 and drvden0 (table 104). table 103 - cr1f fdd3 fdd2 fdd1 fdd0 d7 d6 d5 d4 d3 d2 d1 d0 dt0 dt1 dt0 dt1 dt0 dt1 dt0 dt1
smsc ds ? FDC37N3869 page 109 rev. 10/25/2000 table 104 - drive type encoding drive type drvden0 drvden1 dt0 dt1 drive type description 0 0 densel drate0 4/2/1 mb 3.5? 2/1 mb 5.25? fdds 2/1.6/1 mb 3.5? (3-mode) 0 1 drate1 drate0 1 0 ndensel drate0 ps/2 1 1 drate0 drate1 cr20 cr20 can only be accessed in the conf iguration state and after the csr has been initialized to 20h. the default value of this register after power up is 3ch (table 105). cr20 is used to select the base address of the floppy disk controller (fdc). the fdc base address can be set to 48 locations on 16 byte boundaries from 100h - 3f0h. to disable the fdc set adr9 and adr8 to zero. set cr 20.[1:0] to 00b when writing the fdc base address. fdc address decoding: ncs = ?0? and a10 = ?0? are requir ed to access the fdc regist ers. a[3:0] are decoded as 0xxxb. table 105 - cr20: fdc base address register db7 db6 db5 db4 db3 db2 db1 db0 adr9 adr8 adr7 adr6 adr5 adr4 0 0 cr21 register cr21 is reserved. reserved bits cannot be written and return 0 when read. cr22 the ecp software select register cr22 contains the ecp ir q select bits and the ecp dma select bits (table 106). cr22 is part of the ecp dma/irq software indicators descr ibed in the ecp cnfgb regist er. cr22 is read/write. note: all of the ecp dma/irq software indicators, including cr22, are softwar e-only. writing these bits does not affect the ecp hardware dma or irq channel s that are configur ed in cr26 and cr27. table 106 - ecp software select register (cr22) index r/w hard reset vcc por description d7 d6 d5 d4 d3 d2 d1 d0 0x22 r/w 0x00 0x00 reserved ecp irq select ecp dma select cr23 cr23 can only be accessed in the conf iguration state and after the csr has been initialized to 23h. the default value of this register after power up is 00h (table 107). cr23 is used to select the base address of the parallel port. if epp is not enabled, the parallel port can be set to 192 locations on 4-byte boundar ies from 100h - 3fch; if epp is enabled, the parallel port can be set to 96 locations on 8-byte boundaries from 100h - 3f8h (table 108). to disable the parallel port, set adr9 and adr8 to zero. parallel port address decoding: ncs = ?0? and a10 = ?0? are required to access the parallel port when in compatible, bi-directional, or epp modes. a10 is active when in ecp mode. table 107 - cr23: parallel port base address register db7 db6 db5 db4 db3 db2 db1 db0 adr9 adr8 adr7 adr6 adr5 adr4 adr3 adr2 table 108 - parallel port addressing options epp enabled addressing (low bits) decode no a[1:0] = xxb yes a[2:0] = xxxb
smsc ds ? FDC37N3869 page 110 rev. 10/25/2000 cr24 cr24 can only be accessed in the conf iguration state and after the csr has been initialized to 24h. the default value of this register after power up is 00h (table 109). cr24 is used to select the base address of serial port 1 (uart1). the serial port can be set to 96 locations on 8- byte boundaries from 100h - 3f8h. to disable serial port 1, set adr9 and adr8 to zero. set cr24.0 to 0 when writing the uart1 base address. serial port 1 address decoding: ncs = ?0? and a10 = ?0? are required to access uart1 registers. a[ 2 :0] are decoded as xxxb. table 109 - cr24: uart1 base address register db7 db6 db5 db4 db3 db2 db1 db0 adr9 adr8 adr7 adr6 adr5 adr4 adr3 0 cr25 cr25 can only be accessed in the conf iguration state and after the csr has been initialized to 25h. the default value of this register after power up is 00h (table 110). cr25 is used to select the base address of serial port 2 (uart2). serial port 2 can be set to 96 locations on 8-byte boundaries from 100h - 3f8h. to disable serial port 2, set adr9 and adr8 to zero. set cr25.0 to 0 when writing the uart2 base address. serial port 2 address decoding: ncs = ?0? and a10 = ?0? are required to access uart2 registers. a[ 2 :0] are decoded as xxxb. table 110 - cr25: uart2 base address register db7 db6 db5 db4 db3 db2 db1 db0 adr9 adr8 adr7 adr6 adr5 adr4 adr3 0 cr26 cr26 can only be accessed in the confi guration state and after the csr has been initialized to 26h. the default value of this register after power up is 00h (table 111). cr26 is used to select the dma for the fdc (bits 4 - 7) and the parallel port (bits 0 - 3). any unselect ed dma request output (drq) is in tristate. table 111 - cr26: fdc and pp dma selection register d3-d0 or d7-d4 dma selected 0000 dma_a 0001 dma_b 0010 dma_c 0011 dma_d 0100 reserved 1111 none
smsc ds ? FDC37N3869 page 111 rev. 10/25/2000 cr27 cr27 can only be accessed in the confi guration state and after the csr has been initialized to 27h. the default value of this register after power up is 00h (table 112). cr27 is used to select the irq for the fdc (bits 4 - 7) and the parallel port (bits 3 - 0). any unselected ir q output (registers cr27 - cr 29) is in tri-state. table 112 - cr27: fdc and pp irq selection register d3-d0 or d7-d4 irq selected 0000 none 0001 irq_1 0010 irq_2 0011 irq_3 0100 irq_4 0101 irq_5 0110 irq_6 0111 irq_7 1000 irq_8 1001 irq_9 1010 irq_10 1011 irq_11 1100 irq_12 1101 irq_13 1110 irq_14 1111 irq_15 cr28 cr28 can only be accessed in the conf iguration state and after the csr has been initialized to 28h. the default value of this register after power up is 00h. cr28 is used to select the irq for serial port 1 (bits 7 - 4) and for serial port 2 (bits 3 - 0). refer to the irq encoding for cr27 (table 113) . any unselected irq output (registers cr27 - cr29) is in tristate. shared irqs are not supported in the FDC37N3869. table 113 - uart interrupt operation uart1 uart2 irq pins uart1 out2 bit uart1 irq output state uart2 out2 bit uart2 irq output state uart1 pin state uart2 pin state 0 z 0 z z z 1 asserted 0 z 1 z 1 de-asserted 0 z 0 z 0 z 1 asserted z 1 0 z 1 de-asserted z 0 1 asserted 1 asserted 1 1 1 asserted 1 de-asserted 1 0 1 de-asserted 1 asserted 0 1 1 de-asserted 1 de-asserted 0 0 it is the responsibility of the software to ensure that two irq?s are not set to the same irq number. potential damage to chip ma y result. note: z = don?t care.
smsc ds ? FDC37N3869 page 112 rev. 10/25/2000 cr29 cr29 can only be accessed in the conf iguration state and after the csr has been initialized to 29h. the default value of this register after power up is 00h (table 114). cr29 controls the hpmode bit and is used to select the irq mapping (bits 0 - 3) for the irqin pin. refer to irq encoding for cr27 (table 109) . any unselected irq output (registers cr27 - cr29) is in tristate. table 114 - cr29 bit no. name description 0-3 irqin selects the irq for irqin 4 hpmode see figure 3 ? infrared interface block diagram 0 select irmode (default) 1 select irr3 5 reserved not writeable, reads return ?0? 7 sirq_en serial irq enable bit. 0 = enable (default) 1 = disable cr2a register cr2a is reserved. the default val ue of this register after power up is 00h. cr2b cr2b can only be accessed in the confi guration state and after the csr has been initialized to 2bh. the default value of this register after power up is 00h (table 115). cr2b is used to set the sce (fir) base address adr[10:3]. the sce base address can be set to 224 locations on 8-byte boundaries from 100h - 7f8h. to disable the sce, set adr10, adr9 and adr8 to zero. sce address decoding: ncs = ?0? required to access sce registers. a[ 2 :0] are decoded as xxxb. table 115 - cr2b: sce (fir) base address register db7 db6 db5 db4 db3 db2 db1 db0 adr10 adr9 adr8 adr7 adr6 adr5 adr4 adr3 cr2c cr2c can only be accessed in the conf iguration state and after the csr has been initialized to 2ch. the default value of this register after power up is 00h (table 116). bits d[3:0] of this register are used to select the dma for the sce (fir). bits d[7:4] are reserved. reserved bits cannot be written and return 0 when read. any unselected dma request output (drq) is in tristate. table 116 - cr2c: sce (fir) dma select register d3-d0 or d7-d4 dma selected 0000 dma_a 0001 dma_b 0010 dma_c 0011 dma_d 0100 reserved 1111 none cr2d cr2d can only be accessed in the confi guration state and after the csr has been initialized to 2dh. the default value of this register after power up is 03h (table 117). cr2d is used to set the ir half duplex turnaround delay time for the ir port. this value is 0 to 10msec in 100sec increments. the ircc v2.0 block includes an 8 bit ir half duplex time- out register in sce register block 5, address 1 that interacts with configuration register cr2d. these two registers behave lik e the other ircc legac y controls where either source uniformly updates the value of both registers when eit her register is explicit ly written using iow or following a device-level por. ircc software resets do not affect these registers.
smsc ds ? FDC37N3869 page 113 rev. 10/25/2000 the ir half duplex time-out is programmable from 0 to 25.5ms in 100 s increments, as follows: ir half duplex time-out = (cr2d) x 100 s table 117 - cr2d d7 d6 d5 d4 d3 d2 d1 d0 default cr2d r/w ir half duplex time-out 0x03 cr2e cr2e can only be accessed in the confi guration state and after the csr has been initialized to 2eh. the default value of this register after power up is 00h (table 118). cr2e is directly connected to sce register block three, address 0x05 in the ircc v2.0 block. table 118 - cr2e d7 d6 d5 d4 d3 d2 d1 d0 default cr2e r/w software select a 0x00 cr2f cr2f can only be accessed in the confi guration state and after the csr has been initialized to 2fh. the default value of this register after power up is 00h (table 119). cr2f is directly connected to sce register block three, address 0x06 in the ircc v2.0 block. table 119 - cr2f d7 d6 d5 d4 d3 d2 d1 d0 default cr2f r/w software select b 0x00
smsc ds ? FDC37N3869 page 114 rev. 10/25/2000 operational description maximum guaranteed ratings operating temper ature ra nge.................................................................................................... ....................... 0 o c to +70 o c storage temper ature range ...................................................................................................... ......................-55 o to +150 o c lead temperature range (sol dering, 10 seconds ) ................................................................................. .................... +325 o c positive voltage on any pin, with respec t to ground ............................................................................ ..................+vcc+0.3v negative voltage on any pin, with respect to gr ound............................................................................ ..........................-0.3v maximum v cc ............................................................................................................................... ...................................+5.5v *stresses above those listed above coul d cause permanent damage to the device. this is a stress rating only and functional operation of the dev ice at any other condition abov e those indicated in the oper ation sections of this specification is not implied. note: when powering this device from labor atory or system power supplies, it is important t hat the absolute maximum ratings not be exceeded or device failure can resul t. some power supplies exhibit voltage spikes on their outputs when the ac power is switched on or off. in addition, voltage transi ents on the ac power line may appear on the dc output. if this possibility exists, it is suggested that a cl amp circuit be used. dc electrical characteristics (t a = 0c - 70c, v cc = +3.3 v 10%) table 120 - dc electrical characteristics (t a = 0c - 70c, v cc = +3.3 v 10%) parameter symbol min typ max units comments i type input buffer low input level high input level v ili v ihi 2.0 0.8 v v ttl levels is type input buffer low input level high input level schmitt trigger hysteresis v ilis v ihis v hys 2.2 250 0.8 v v mv schmitt trigger schmitt trigger i clk input buffer low input level high input level v ilck v ihck 2.2 0.4 v v input leakage (all i and is buffers except pwrgd) low input leakage high input leakage i il i ih -10 -10 +10 +10 a a v in = 0 v in = v cc input current pwrgd i oh 75 150 a v in = 0 io12 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 12ma i oh = -6ma v in = 0 to v cc (note 1) o12 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 12ma i oh = -6ma v in = 0 to v cc (note 1)
smsc ds ? FDC37N3869 page 115 rev. 10/25/2000 parameter symbol min typ max units comments o12pd type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 12ma i oh = -6ma v in = 0 to v cc (note 1) o6 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 6ma i oh = -3ma v in = 0 to v cc (note 1) od14 type buffer low output level output leakage v ol i ol -10 0.4 +10 v a i ol = 14ma v in = 0 to v cc (note 1) op14 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 14ma i oh = -14ma v in = 0 to v cc (note 1) iop14 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 14ma i oh = -14ma v in = 0 to v cc (note 1) o4 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 4ma i oh = -2ma v in = 0 to v cc (note 1) od12 type buffer low output level output leakage v ol i ol -10 0.4 +10 v a i ol = 12 ma v in = 0 to v cc (note 1) supply current active supply current standby i cc i csby 15 20 100 ma a all outputs open. note 3 chiprotect (slct, pe, busy, nack, nerror) i il 10 a chip in circuit: v cc = 0v v in = 5.5v max. backdrive protect (nslctin, ninit, nautofd, nstrobe, pd[7:0]) i il 10 a chip in circuit: v cc = 0v v in = 5.5v max. note 1: output leakage is measured with the current pins in high impedance as defined by the pwrgd pin. note 2: output leakage is measured with t he low driving output off, either fo r a high level output or a high impedance state defined by pwrgd. note 3: defined by the device configurat ion with the pwrgd input low.
smsc ds ? FDC37N3869 page 116 rev. 10/25/2000 capacitance t a = 25c; fc = 1mhz; v cc = 3.3v table 121 - clock pin loading limits parameter symbol min typ max unit test condition clock input capacitance c in 20 pf input capacitance c in 10 pf output capacitance c out 20 pf all pins except pin under test tied to ac ground table 122 - capacitive loading per output pin signal name total capacitance (pf) sd[0:7] 240 iochrdy 240 irqs 120 drqs 120 nwgate 240 nwdata 240 nhdsel 240 ndir 240 nstep 240 nds[1:0] 240 nmtr[1:0] 240 drvden[1:0] 240 txd 100 nrts 100 ndtr 100 pd[7:0] 240 nslctin 240 ninit 240 nalf 240 nstb 240
smsc ds ? FDC37N3869 page 117 rev. 10/25/2000 ac timing host timing parameter min typ max units t1 t2 t3 t4 t5 a0-a9, aen, niocs16 set up to nior low nior width a0-a9, aen, niocs16 hold from nior high data access time from nior low data to float delay from nior high 40 150 10 10 100 60 ns ns ns ns ns t6 parallel port setup t7 read strobe to clear fintr ns 55 ns 20 40 t8 nior or niow inactive for transfers to and from ecp fifo 150 ns t3 t1 t6 t2 t4 t5 t7 t8 t9 data valid ax, aen, niocs16 nior data (d0-d7) pd0-pd7, nerr, pe, slct, nack, busy fintr nior/niow pintr t9 nior active to pintr inactive 260 ns pintr is the interrupt assigned to the parallel port fintr is the interrupt assigned to the floppy disk figure 8 - microprocessor read timing
smsc ds ? FDC37N3869 page 118 rev. 10/25/2000 t3 t1 t2 t4 t5 t6 t7 data valid ax, aen, niocs16 niow data (d0-d7) fintr pintr parameter min typ max units t1 t2 t3 t4 t5 a0-a9, aen, niocs16 set up to niow low niow width a0-a9, aen, niocs16 hold from niow high data set up time to niow high data hold time from niow high 40 150 10 10 ns ns ns ns ns 40 t6 write strobe to clear fintr 55 ns 40 t7 niow inactive to pintr inactive 260 ns pintr is the interrupt assigned to the parallel port fintr is the interrupt assigned to the floppy disk figure 9 - microprocessor write timing
smsc ds ? FDC37N3869 page 119 rev. 10/25/2000 figure 10 - dma timing ndack delay time from fdrq high drq reset delay from nior or niow fdrq reset delay from ndack low ndack width nior delay from fdrq high niow delay from fdrq high data access time from nior low data set up time to niow high data to float delay from nior high data hold time from niow high ndack set up to niow/nior low ndack hold after niow/nior high tc pulse width aen set up to nior/niow aen hold from ndack tc active to pdrq inactive parameter min typ max units t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 0 150 0 0 40 10 10 5 10 60 40 10 100 100 100 60 100 ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns t15 t2 t3 t12 t16 t1 t4 t5 t6 t11 t14 t8 t7 t9 t10 t13 aen fdrq, pdrq fdackx pdackx nior or niow data (do-d7) tc data valid fdrq refers to the drq assigned to the floppy disk pdrq refers to the drq assigned to the parallel port fdackx refers to the ndack assigned to the to the floppy disk pdackx refers to the ndack assigned to the parallel port
smsc ds ? FDC37N3869 page 120 rev. 10/25/2000 figure 11 - clock timing t1 t2 t2 t4 x1k nreset min t1 65 max units clock cycletime for 14.318mhz clock high time/low time for 14.318mhz clock cycle time for 32khz clock high time/low time for 32khz clock rise time/fall time (not shown) nreset low time t2 t1 t2 5 1.5 t4 the nreset low time is dependent upon the processor clock. the nreset must be active for a minimum of 1.5us. typ parameter 70 35 31.25 16.53 ns ns ns us us us
smsc ds ? FDC37N3869 page 121 rev. 10/25/2000 fdd timing t3 t1 t2 t4 t5 t6 t7 t8 t9 t9 ndir nstep nds0-3 nindex nrdata nwdata niow nds0-1, nmtr0-1 *x specifies one mclk period and y specifies one wclk period. mclk = 16x data rate (at 500 kbp/s mclk = 8 mhz) wclk = 2x data rate (at 500 kbp/s wclk = 1 mhz) p a ra me te r min typ ma x units t1 t2 t3 t4 t5 t6 t7 t8 t9 ndir set up to nstep low nstep active time low ndir hold time after nstep nstep cycle time nds0-1 hold time from nstep low nindex pulse width nrdata active time low nwdata write data width low nds0-1, mtr0-1 from end of niow x* x* x* x* x* x* ns y* ns 4 24 96 132 20 2 40 .5 25 (at mode timing only) figure 12 - disk drive timing
smsc ds ? FDC37N3869 page 122 rev. 10/25/2000 serial port timing t1 t5 t2 t4 t6 t3 niow nrtsx, ndtrx irqx nctsx, ndsrx, ndcdx irqx niow irqx nior nrix parameter min typ max units t1 t2 t3 t4 t5 t6 nrtsx, ndtrx delay from niow irqx active delay from nctsx, ndsrx, ndcdx irqx inactive delay from nior (leading edge) irqx inactive delay from niow (trailing edge) irqx inactive delay from niow irqx active delay from nrix 10 ns ns ns ns ns ns 200 100 120 125 100 100 figure 13 - serial port timing
smsc ds ? FDC37N3869 page 123 rev. 10/25/2000 t1 t2 t2 t1 01010 011011 data irrx nirrx t1 t1 t1 t1 t1 t1 t1 t2 t2 t2 t2 t2 t2 t2 parameter min typ max units 1.4 1.4 1.4 1.4 1.4 1.4 1.4 2.71 3.69 5.53 11.07 22.13 44.27 88.55 s s s s s s s s s s s s s s pulse width at 115kbaud pulse width at 57.6kbaud pulse width at 38.4kbaud pulse width at 19.2kbaud pulse width at 9.6kbaud pulse width at 4.8kbaud pulse width at 2.4kbaud bit time at 115kbaud bit time at 57.6kbaud bit time at 38.4kbaud bit time at 19.2kbaud bit time at 9.6kbaud bit time at 4.8kbaud bit time at 2.4kbaud 1.6 3.22 4.8 9.7 19.5 39 78 8.68 17.4 26 52 104 208 416 notes: 1. receive pulse detection criteria: a received pulse is considered detected if the received pulse is a minimum of 1.41s. 2. irrx: crc bit 0: 1 = rcv active low nirrx: crc bit 0: 0 = rcv active high (default) figure 14 - irda sir receive timing
smsc ds ? FDC37N3869 page 124 rev. 10/25/2000 t1 t1 t1 t1 t1 t1 t1 t2 t2 t2 t2 t2 t2 t2 parameter min typ max units 1.41 1.41 1.41 1.41 1.41 1.41 1.41 2.71 3.69 5.53 11.07 22.13 44.27 88.55 s s s s s s s s s s s s s s pulse width at 115kbaud pulse width at 57.6kbaud pulse width at 38.4kbaud pulse width at 19.2kbaud pulse width at 9.6kbaud pulse width at 4.8kbaud pulse width at 2.4kbaud bit time at 115kbaud bit time at 57.6kbaud bit time at 38.4kbaud bit time at 19.2kbaud bit time at 9.6kbaud bit time at 4.8kbaud bit time at 2.4kbaud 1.6 3.22 4.8 9.7 19.5 39 78 8.68 17.4 26 52 104 208 416 t1 t2 t2 t1 0 10 1 0 0 11 0 11 data irtx nirtx notes: 1. irda @ 115k is hpsir compatible. irda @ 2400 will allow compatibility with hp95lx and 48sx. 2. irtx: crc bit 1: 1 = xmit active low (default) nirtx: crc bit 1: 0 = xmit active high figure 15 - irda sir transmit timing
smsc ds ? FDC37N3869 page 125 rev. 10/25/2000 t1 t2 t3 t4 t5 t6 parameter min typ max units 0.8 0.8 0.8 0.8 1.2 1.2 1.2 1.2 s s s s s s modulated output bit time off bit time modulated output "on" modulated output "off" modulated output "on" modulated output "on" 1 1 1 1 notes: 1. irrx: crc bit 0: 1 = rcv active low nirrx: crc bit 0: 0 = rcv active high (default) mirrx, nmirrx are the modulated outputs t1 t2 t3 t4 t5 t6 01010011011 data irrx nirrx mirrx nmirrx figure 16 - amplitude shift keyed ir receive timing
smsc ds ? FDC37N3869 page 126 rev. 10/25/2000 t1 t2 t3 t4 t5 t6 parameter min typ max units 0.8 0.8 0.8 0.8 1.2 1.2 1.2 1.2 s s s s s s modulated output bit time off bit time modulated output "on" modulated output "off" modulated output "on" modulated output "on" 1 1 1 1 notes: 1. irtx: crc bit 1: 1 = xmit active low (default) nirtx: crc bit 1: 0 = xmit active high mirtx, nmirtx are the modulated outputs t1 t2 t3 t4 t5 t6 01010011011 data irtx nirtx mirtx nmirtx figure 17 - amplitude shift keyed ir transmit timing
smsc ds ? FDC37N3869 page 127 rev. 10/25/2000 parallel port timing pintr (spp) t2 t2 t5 t3 niow ninit, nstrobe. nautofd, slctin nack pintr (ecp or epp enabled) nfault (ecp) nerror (ecp) pintr pd0- pd7 t6 t1 t2 t3 t4 t5 t6 ninit, nstrobe, nautofd delay from niow inactive pintr delay from nack, nfault pintr active low in ecp and epp modes pintr delay from nack nerror active to pintr active pd0-pd7 delay from niow active ns ns ns ns ns ns 100 60 300 105 105 100 parameter min typ max units 200 pintr is the interrupt assigned to the parallel port t1 t4 t3 figure 18 - parallel port timing
smsc ds ? FDC37N3869 page 128 rev. 10/25/2000 parallel port epp timing figure 19 - epp 1.9 data or address write cycle t1 8 t9 t8 t1 7 t1 2 t1 9 t1 0 t1 1 t1 3 t2 0 t2 t1 t5 t3 t1 4 t1 6 t4 t6 t1 5 t7 ax sd<7 :0 > niow io ch rdy nwrite pd<7 :0 > n datast n add rst b nwait t1 t2 t3 t4 t5 t6 t7 t8 t9 t1 0 t1 1 t1 2 t1 3 t1 4 t1 5 t1 6 t1 7 t1 8 t1 9 t2 0 n iow as se rt ed to pd a ta valid nw a it as se rt ed to n w rit e ch an g e n wr ite to c omma n d a sse r te d nwait deasserted to command deasserted n wai t ass er te d to pdata in va lid time out command deasserted to nwait a sserted sdata va lid to io w a sse r te d n io w d ea ss er te d to data in va lid ni ow ass er te d to io c hrdy de a sse r te d wait deasserted to niochrdy asserted io chr dy d e ass er te d to n io w a sse r te d ni ow as se rt ed to n wr ite a sse r te d nwa it a ss er t ed to c om m a n d a sse r te d command asserted to nwait deasserted pdata v a lid to c omma n d a sse r te d ax va lid to n io w a sse r te d n iow d ea ss er te d to ax in va lid n io w de as se rt ed to n io w or n io r a sse r te d n wai t ass er te d to n wr ite as se rt ed ns ns ns ns ns s ns ns ns ns ns ns ns ns s ns ns ns ns ns 50 185 35 190 12 24 160 70 210 10 185 pa ra met e r mi n ma x unit s 0 60 5 60 0 10 0 10 0 0 60 10 0 60 0 10 40 10 40 60 notes 1 1 1 1 1 1 note: wait must be filtered to compensate for ringing on the parallel bus cable. wait is considered to have settled after it does not transition for a minimum of 50 nsec.
smsc ds ? FDC37N3869 page 129 rev. 10/25/2000 t20 t19 t11 t22 t13 t12 t8 t10 t18 t9 t21 t17 t2 t25 t5 t4 t16 t1 t14 t28 t3 t7 t15 t6 pdata bus driven by peripheral ior sd<7:0> iochrdy nwrite pd<7:0> datastb a ddrstb nwait timing parameter table for the epp data or address read cycle is found on next page. ax figure 20 - epp 1.9 data or address read cycle
smsc ds ? FDC37N3869 page 130 rev. 10/25/2000 figure 21 - epp 1.9 data or address read cycle timing parameters t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t25 t28 pdata hi-z to command asserted nior asserted to pdata hi-z nwait deasserted to command deasserted command deasserted to pdata hi-z command asserted to pdata valid pdata hi-z to nwait deasserted pdata valid to nwait deasserted nior assertd to iochrdy deasserted nwrite deasserted to nior asserted nwait deasserted to iochrdy asserted iochrdy deasserted to nior asserted nior deasserted to sdata hi-z (hold time) pdata valid to sdata valid nwait asserted to command asserted time out nwait deasserted to pdata driven nwait deasserted to nwrite modified sdata valid to iochrdy asserted ax valid to nior asserted nior deasserted to ax invalid nwait asserted to nwrite deasserted nior deasserted to niow or nior asserted nwait asserted to pdata hi-z write deasserted to command ns ns ns ns ns s ns ns ns ns ns ns ns ns s ns ns ns ns ns ns ns ns ns 30 50 180 24 160 40 75 195 12 190 190 85 185 180 parameter min max units 0 0 60 0 0 0 0 0 0 60 0 0 0 0 10 60 60 0 40 10 0 40 60 1 notes 1 2 1 1 1,2 3 1 notes: 1. nwait is considered to have settled after it does not transition for a minimum of 50 ns. 2. when not executing a write cycle, epp nwrite is inactive high. 3. 85 is true only if t7 = 0.
smsc ds ? FDC37N3869 page 131 rev. 10/25/2000 figure 22 - epp 1.7 data or address write cycle t18 t9 t8 t17 t6 t12 t19 t10 t20 t11 t13 t2 t1 t5 t3 t16 t4 t21 ax sd<7:0> niow iochrdy nwrite pd<7:0> ndatast naddrstb nwait niow asserted to pdata valid command dessserted to nwrite change nwrite to command niow deasserted to command deasserted command deasserted to pdata invalid time out sdata valid to niow asserted niow deasserted to data invalid niow asserted to iochrdy deasserted nwait deasserted to iochrdy asserted iochrdy deasserted to niow deasserted niow asserted to nwrite asserted pdata valid to command asserted ax valid to niow asserted niow deasserted to ax invalid niow deasserted to niow or nior asserted nwait asserted to iochrdy deasserted command deasserted to nwait deasserted ns ns ns ns ns s ns ns ns ns ns ns ns ns s ns ns ns 50 40 35 50 12 24 40 50 35 45 parameter min max units 0 0 5 50 10 10 0 0 10 0 10 40 10 100 0 notes 2 notes: 1. write is controlled by clearing the pdir bit to "0" in the control register before performing an epp write. 2. this number is only valid if wait is active when niow goes active. t1 t2 t3 t4 t5 t6 t8 t9 t10 t11 t12 t13 t16 t17 t18 t19 t20 t21
smsc ds ? FDC37N3869 page 132 rev. 10/25/2000 figure 23 - epp 1.7 data or address read cycle t20 t19 t11 t15 t22 t13 t12 t3 t8 t10 t5 t4 t23 t2 t21 ax nior sd<7:0> iochrdy nwrite pd<7:0> ndatastb naddrstb nwait t2 t3 t4 t5 t8 t10 t11 t12 t13 t15 t19 t20 t21 t22 t23 nior deasserted to command deasserted nwait asserted to iochrdy deasserted command deasserted to pdata hi-z command asserted to pdata valid nior asserted to iochrdy deasserted nwait deasserted to iochrdy asserted niochrdy deasserted to nior asserted nior deasserted to sdata high-z (hold time) pdata valid to sdata valid time out ax valid to nior asserted nior deasserted to ax invalid command deasserted to nwait deasserted nior deasserted to niow or nior asserted nior asserted to command asserted ns ns ns ns ns ns ns ns ns s ns ns ns ns ns 50 40 24 50 40 40 12 55 parameter min max units 0 0 0 0 0 10 40 10 0 40 notes note: 1. nwrite is controlled by setting the pdir bit to "1" in the control register before performing an epp read.
smsc ds ? FDC37N3869 page 133 rev. 10/25/2000 parallel port ecp timing parallel port fifo (mode 101) the standard parallel port is run at or near the peak 500 kbps allowed in the forward direction using dma. the state machine does not examine nack and begins the next transfer based on busy. refer to figure 23. ecp parallel port timing the timing is designed to allow operation at approximately 2.0m bytes/sec over a 15ft cable. if a shorter cable is used then the bandwidth will increase. forward-idle when the host has no data to send it keeps hostclk (nstrobe) high and the peripheral will leave periphclk (busy) low. forward data transfer phase the interface transfers data and commands from the hos t to the peripheral using an interlocked periphack and hostclk. the peripheral may indicate its desire to send data to the host by asserting nperiph request. the forward data transfer phase may be entered from the forward-idle phase. while in the forward phase the peripheral may asynchronously assert the nperiph request (nfault) to request that the channel be reversed. when the peripheral is not busy it sets periphack (busy) low. the host then sets hostclk (nstrobe) low when it is prepared to send data. the data must be stable for the specified setup time prior to the falling edge of hostclk. the peripheral then sets periphack (busy) high to acknowledge the handshake. the host then sets hostclk (nstrobe) high. the peripheral then accepts the data and sets periphack (busy) low, completing the transfer. this sequence is shown in figure 24. the timing is designed to provide 3 cable round-trip times fo r data setup if data is driven simultaneously with hostclk (nstrobe). reverse-idle phase the peripheral has no data to send and keeps periphclk high. the host is idle and keeps hostack low. reverse data transfer phase the interface transfers data and commands from the per ipheral to the host using an interlocked hostack and periphclk. the reverse data transfer phase may be entered from the re verse-idle phase. after the previous byte has beed accepted the host sets hostack (nautofd) low. the peripheral then sets periphclk (nack) low when it has data to send. the data must be stable for the specified setup time prior to t he falling edge of periphclk. when the host is ready it to accept a byte it sets. hostack (nautofd ) high to acknowledge the handshake. the peripheral then sets periphclk (nack) high. after the host has accepted the data it sets hostack (nautofd) low, completing the transfer. this sequence is shown in figure 25. output drivers to facilitate higher performance dat a transfer, the use of balanced cmos active drivers for critical signals (data, hostack, hostclk, periphack, periphclk) are used ecp m ode. because the use of ac tive drivers can present compatibility problems in compatible m ode (the control signals, by tradition, are specified as open-collector), the drivers are dynamically changed from open-collector to totem-pole. the ti ming for the dynamic driverchange is specified in the ieee 1284 ex tended capabilities port protoc ol and isa interface standard , rev. 1.14, july. 14, 1993, available from microsoft. the dynamic driver change must be implemented properly to prev ent glitching the outputs.
smsc ds ? FDC37N3869 page 134 rev. 07/21/2000 t3 t6 t1 t2 t5 t4 pdata nstrobe busy parameter min max units t1 t2 t3 t4 t5 t6 data valid to nstrobe active nstrobe active pulse width data hold from nstrobe inactive nstrobe active to busy active busy inactive to nstrobe active busy inactive to pdate invalid 600 600 450 680 80 ns ns ns ns ns ns 500 notes 1 1 note: 1. the data is held until busy goes inactive or for time t3, whichever is longer. this only applies if another data transfer is pending. if no other data transfer is pending, the data is held indefinitely. figure 24 - parallel port fifo timing parameter min max units t1 t2 t3 t4 t5 t6 t7 t8 nautofd valid to nstrobe asserted pdata valid to nstrobe asserted busy deasserted to nautofd changed nbusy deasserted to pdata changed nstrobe asserted to busy asserted nstrobe deasserted to busy deasserted nbusy deasserted to nstrobe asserted nbusy asserted to nstrobe deasserted 0 0 80 80 0 0 80 80 ns ns ns ns ns ns ns ns 60 60 180 180 200 180 notes 1,2 1,2 1,2 2 notes: 1. maximum value only applies if there is data in the fifo waiting to be written out. 2. busy is not considered asserted or deasserted until it is stable for a minimum of 75 to 130 ns. t3 t4 t1 t2 t7 t8 t6 t5 t6 nautofd pdata<7:0> nstrobe busy figure 25 - ecp parallel port forward timing
smsc ds ? FDC37N3869 page 135 rev. 10/25/2000 figure 26 - ecp parallel port reverse timing t2 t1 t5 t6 t4 t3 t4 pdata<7:0> nack nautofd parameter min max units t1 t2 t3 t4 t5 t6 pdata valid to nack asserted nautofd asserted to pdata changed nack asserted to nautofd deasserted nack deasserted to nautofd asserted nautofd asserted to nack asserted nautofd deasserted to nack deasserted 0 0 80 80 0 0 ns ns ns ns ns ns 200 200 notes 1,2 2 notes: 1. maximum value only applies if there is room in the fifo and a terminal count has not been received. ecp can stall by keeping nautofd low. 2. nack is not considered asserted or deasserted until it is stable for a minimum of 75 to 130 ns.
smsc ds ? FDC37N3869 page 136 rev. 10/25/2000 package outlines figure 27 - 100 pin tqfp package outline 0 l1 l notes: coplanarity is 0.100mm maximum. tolerance on the position of the leads is 0.13mm maximum. package body dimensions d1 and e1 do not include the mold protrusion. maximum mold protrusion is 0.25mm per side. dimension for foot length l are measured at the gauge plane 0.25mm above the seating plane. details of pin 1 identifier are optional but must be located within the zone indicated. 6. controlling dimension: millimeter e1 e d1 d e w 3 3 2 e1/4 d1/4 5 0.10 -c- h a a1 a2 see detail "a" 1 r1 r2 4 detail "a" min 0.05 1.35 15.75 13.90 15.75 13.90 0.45 nom 1.40 16.00 14.00 16.00 14.00 0.60 1.00 max 1.6 1.45 16.25 14.10 16.25 14.10 0.20 0.75 0 0.25 0.20 0.20 0.50 bsc 8 dim a a1 a2 d d1 e e1 h l l1 e 0 w r1 r2 1 2 3 4 5


▲Up To Search▲   

 
Price & Availability of FDC37N3869

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X